#include <IRremote.h>
const int IR_RECIEVE_PIN = 5;
IRrecv irrecv(IR_RECIEVE_PIN);
decode_results results;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
irrecv.enableIRIn(); //enable the sensor with the library
}
void loop() {
// put your main code here, to run repeatedly:
if(irrecv.decode(&results)){
irrecv.resume();
Serial.println(results.value, HEX);
//print number as a hexa decimal
}
}