#include int RECV_PIN = 11; boolean x=0; //bit to inverse the control IRrecv irrecv(RECV_PIN); decode_results results; void setup() { Serial.begin(9600); irrecv.enableIRIn(); // Start the receiver pinMode(13,OUTPUT); } void loop() { if (irrecv.decode(&results)) { Serial.println(results.value, HEX); //write the result irrecv.resume(); // Receive the next value } //controling if(results.value==0xEF38C7) //code got from the result { x=!x; //invert booleon //ox to wrtie in HEX-Decimael results.value=0;} digitalWrite(13,x); //use value of the booleon delay(100); }