News

pantaluna/esp32_dht22_temperature_sensor_using_lib. This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
// Connect pin 2 of the sensor to whatever your DHTPIN is // Connect pin 4 (on the right) of the sensor to GROUND // Connect a 10K resistor from pin 2 (data) to pin 1 (power) of the sensor // ...
Now, whenever the temperature values go past 20 it will trigger the IFTTT event to send an email to notify that the temperature has crossed the critical values. This is how a DHT11 sensor can be ...
3. Finally, to measure the sensor value, we have to use the following three commands. sensor.measure() sensor.temperature() sensor.humidity() For the final code, we put it in a while loop with and ...