Skip to content

Instantly share code, notes, and snippets.

buildcircuit / gist:2758308
Last active Oct 5, 2015
Simple IR sensor using Arduino
View gist:2758308
Connect the output pin of Infrared remote to DIG 2
Connect an LED to pin 13.
#include <IRremote.h>
const int irReceiverPin = 2;
const int ledPin = 13;
IRrecv irrecv(irReceiverPin); //create an IRrecv object