
The pins should be labeled so that you know how to wire them. Note: if you’re using a module with a DHT sensor, it normally comes with only three pins. (This schematic uses the ESP32 DEVKIT V1 module version with 36 GPIOs – if you’re using another model, please check the pinout for the board you’re using.) Take a look at the library documentation on its GitHub page.

You can watch the video tutorial or keep reading this page for the written instructions. Update the sensor readings automatically without the need to refresh the web page.įor a more in-depth explanation on how to use the DHT22 and DHT11 temperature and humidity sensors with the ESP32, read our complete guide: ESP32 with DHT11/DHT22 Temperature and Humidity Sensor using Arduino IDE Watch the Video Tutorial.

Build an asynchronous web server using the ESPAsyncWebServer library.How to read temperature and humidity from DHT sensors.The web server we’ll build updates the readings automatically without the need to refresh the web page.
