Main Content

Esp32 Based Wather Stations

How to make Esp32 Based Wather Stations

In this project, you’ll learn how to build an asynchronous ESP32 web server with the DHT11 that displays temperature and humidity using Arduino IDE.

The web server we’ll build updates the readings automatically without the need to refresh the web page.

With this project you’ll learn:

How to read temperature and humidity from DHT sensors;
Build an asynchronous web server using the ESPAsyncWebServer library;
Update the sensor readings automatically without the need to refresh the web page.
For 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

Before proceeding to the web server, you need to wire the DHT11 or DHT22 sensor to the ESP32 as shown in the following schematic diagram.

In this case, we’re connecting the data pin to GPIO 27, but you can connect it to any other digital pin. You can use this schematic diagram for both DHT11 and DHT22 sensors.”

Link to article