Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View buildcircuit's full-sized avatar

Sagar Sapkota buildcircuit

View GitHub Profile
@buildcircuit
buildcircuit / gist:2758308
Last active January 30, 2024 01:14
Simple IR sensor using Arduino
/*
IR_remote_tester_and_detector
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