#include <IRremote.h>
int signal=7;
void setup() {
Serial.begin(9600);
IrReceiver.begin(signal);
// put your setup code here, to run once:
}
void loop() {
if(IrReceiver.decode())
{
Serial.println(IrReceiver.decodedIRData.command);
IrReceiver.resume();
}
// put your main code here, to run repeatedly:
}