// Forum: https://forum.arduino.cc/t/issues-trying-to-use-the-ir-remote/1102869
// This sketch: https://wokwi.com/projects/359481823293165569
// The sketch would only return FFFFFFFF, and indeed it does.
#include <IRremote.h>
int RECV_PIN = 11; //define input pin on Arduino
IRrecv irrecv(RECV_PIN);
decode_results results;
void setup()
{
Serial.begin(9600);
irrecv.enableIRIn(); // Start the receiver
}
void loop() {
if (irrecv.decode(&results)) {
Serial.println(results.value, HEX);
irrecv.resume(); // Receive the next value
}
}