Hi, I recently bought an IR sensor along with a remote. I hooked the IR sensor up and loaded an example sketch that prints out the buttons on the serial monitor. The arduino does print something, but they are completeley random and even when I'm pressing nothing the arduino just spits out values. and also it stops for a few minutes and then starts spitting out values again. I bought another IR sensor, but unfortunately same results.
Any solutions? BTW I tried it with this code. https://arduino-info.wikispaces.com/IR-RemoteControl