#include <IRremote.h>
const int RECV_PIN = 11;
IRrecv irrecv(RECV_PIN);
decode_results results;
void setup()
{
Serial.begin(9600);
irrecv.enableIRIn(); // Start the receiver
}
void loop() {
delay(100);
if (irrecv.decode(&results)) {
Serial.print(results.decode_type);
Serial.print(":");
Serial.println(results.value);
irrecv.resume(); // Receive the next value
}
}