DHT11 ESP32 Project

Sends the temperature and humidity values ​​measured by the DHT11 sensor to smartphone via WIFI with ESP32

Purpose of this project:

In this project, you will learn how to create a simple web server with the ESP32 to display readings from DHT11 temperature and humidity sensors.

Necessary components

  • ESP32
  • DTH11 sensor
  • Connecting wires


To perform the assembly

For the DTH11 sensor, we connect:

  • the DATA pin to pin D23 of the ESP32 board

  • the VCC pin to the 3.3V pin of the ESP32 board the GND pin to

  • the GND pin of the ESP32 board

Micropython program


Copy the following code to the ESP32 boot.py file.




Copy the following code into the ESP32 main.py file.

0 commentaire

Leave a comment

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Scroll to Top