Step 2 – Finding the IR values of your remote: This tutorial is assuming you are a least a little familiar with Arduino and have set up the environment (if not, view this previous tutorial). Now we need to find a way to decode the IR signals with our sensor. In order for the sensor to change the light it is receiving into a usable number, we need to measure the pulse of the light. The easiest way to do this is to download a pre-made external library for Arduino here. To install the library, all you need to do is move the unzipped IRremote directory to your Arduino libraries folder (where you first installed the Arduino IDE).
Now that we have our library, we can open Arduino. I have provided the basic code below that we will use to get our values below, with explaining comments: