#include <IRremote.h>
const int IR_RECIEVE_PIN = 5;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
IrReciever.begin(IR_RECIEVE_PIN);
}
void loop() {
// put your main code here, to run repeatedly:
if(IrReciever.decode()){
IrReciever.resume();
Serial.println(IrReciever, decodedIRData, HEX);
//print number as a hexa decimal
Serial.println(IrReciever, decodedIRData, command);
Serial.println("---"); // to seperate the results
}
}