// library https://github.com/Arduino-IRremote/Arduino-IRremote // this code is modified by hwthinker #include int RECV_PIN = 6; //mendifiniskan pin IR receiver IRrecv irrecv(RECV_PIN); decode_results results; void setup () { Serial.begin(9600); irrecv.enableIRIn(); // Start the receiver for (uint8_t i = 9; i < 14; i++) digitalWrite(i, LOW); } void loop() { if (irrecv.decode(&results)) { Serial.println(results.value, HEX); irrecv.resume(); // Receive the next value } }