#include <IRremote.h>
const int IR_RECEIVER_PIN = 14;
IRrecv Remote(IR_RECEIVER_PIN);
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
pinMode(27, OUTPUT);
Remote.enableIRIn();
}
void loop() {
if(Remote.decode()){
Serial.println(Remote.decodedIRdata.command);
}
delay(100);
}