I own an arduino ir sensor (don't know which type) but when i use on of the arduino ir examples to show me the HEX commands it continuously show many HEX signals even when i have not pressed any button and this continues on for 30 secs and i have double checked the code and connections.PLS HELP IS NEEDED AT THE EARLIEST
the code is:
#include <IRremote.h>
int IRPIN = 2;
IRrecv irrecv(IRPIN);
decode_results result;
void setup()
{
Serial.begin(9600);
Serial.println("Enabling IRin");
irrecv.enableIRIn();
Serial.println("Enabled IRin");
}
void loop()
{
if (irrecv.decode(&result))
{
Serial.println(result.value, HEX);
irrecv.resume();
}
delay(500);
}