The sensor is powered from the 5 volt USB power connection. GPIO input D2 is connected to the sensor output (0 to 3.3V). The onboard LEDs are used to monitor the sensor and WiFi activity. Sensing and WiFi connectivity The Arduino IDE was used to program the ESP-12E board for this pr...