How to log the data that comes from an IR receiver on an arduino?
Write me some code so that I can see what an IR receiver i pulled out of a toy says to my arduino, so I can tell what my TV remote is saying. I am then gonna connect a light switch to it, so when i press an unused button on my remote, lights go off. Also, Im not sure if where to plug the data pin into. Honestly, im not sure which one it even is. i jst am gona gues which until it works. Any help there would be apppreciated. A pic of the IR receiver is attached.