Introduction
Image a custom remote in your hands that can manipulate electronic objects in your environment. Wicked. Turn on the kettle. Done. Turn on the AC. Done. Dim the lights. Done.
Whilst we can’t build that, let’s start with something smaller.
Program Description
An IR receiver is used to capture signals from a remote control.
When a button is pressed on the remote, the program reads the specific signal code and prints a corresponding numeric value to the Serial Monitor.
The main loop continuously checks for available signals, processing each one through a switch statement to determine the action based on the received input.
This allows the program to run a unique subprogram depending on the received input.
See the flowchart below for more information

