A simple program to read the code that is received by any Infrared remote control.
const int RECV_PIN = 7;
A simple modification on this code with a if statement and sending digitalWrite high can control a LED to be turned on or off. example
if (results.value == “0789E”)
Obviously for this to work we need the LED to be added to the circuit and the LEDPIN declared (use the first two lessons for the LED addition and the LEDPIN variable declaration.