Building an asynchronous web server has several advantages as mentioned in the library GitHub page, such as: To build the web server we’ll use the ESPAsyncWebServer library that provides an easy way to build an asynchronous web server. 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.