pinMode(IR_Pin, INPUT); // make the IR pin an INPUT: pinMode(GLED_Pin, OUTPUT); // make the LED pin an OUTPUT: pinMode(RLED_Pin, OUTPUT); // make the LED pin an input: ...
ESP8266 WITH IR-SENSOR PROGRAM Basic. Certainly! Below is a simple example of an ESP8266 program using an IR sensor. This example assumes you are using the Arduino IDE with the ESP8266 board support ...