SparkFun Forums 

Where electronics enthusiasts find answers.

For the discussion of Arduino related topics.
By arduinolover23
#190870
I am in a pickle and want to know if you can help me. I have an IR sensor and receiver and want a program that makes a light bulb flash or detect whenever the ir receiver is in range.
So whenever the Ir sender detects the receiver, it should print "detect". This will be done using the Arduino program. And it is an Arduino nano I am using.

These are the things I use:

http://www.dx.com/p/keyestudio-digital- ... 5gcpzYko-U

http://www.dx.com/p/38khz-ir-infrared-t ... 5gcpjYko-U

How should this program look like? Anyone have the code for this?