Esp8266 Ir Pin, Make sure to replace the IR_PIN with the actual GPIO pin to which your IR sensor is connected.