When I press a button on my IR remote, the IR receiver gets 0xffffffff and when I put my hand in front of it, the IR receiver detects different values when I press the same button.
#include <IRremote.h>
#include <LiquidCrystal_I2C.h>
const int RECV_PIN = 3;
IRrecv irrecv(RECV_PIN);
decode_results results;
LiquidCrystal_I2C lcd(0x27, 16, 2);
int i = 0;
void setup(){
Serial.begin(9600);
irrecv.enableIRIn();
irrecv.blink13(true);
lcd.init();
lcd.begin(16,2);
lcd.backlight();
}
void loop(){
if (irrecv.decode( &results ))
{
unsigned long IRval = results.value;
if (IRval == 0xffffffff)
{
irrecv.resume();
return;
}
lcd.clear();
Serial.println( results.value, HEX );
lcd.print(i);
lcd.print(": ");
lcd.print(results.value, HEX);
i++;
irrecv.resume();
}
}
I made it so it shows the values different of 0xffffffff on an I2C lcd.

