This project reads temperature and humidity data from a DHT11 sensor using an ESP32 board running MicroPython, and displays it on a live-updating web page.
- π°οΈ Connects to Wi-Fi
- π‘οΈ Reads real-time temperature & humidity
- π Hosts a simple web server
- π± Mobile + Desktop responsive
- π Auto-refreshes every 5 seconds
- π» Built using MicroPython
| Component | Quantity |
|---|---|
| ESP32 Dev Board | 1 |
| DHT11 Sensor | 1 |
| Breadboard | 1 |
| Jumper Wires | As needed |
| 10KΞ© Resistor | 1 (optional but recommended) |
π‘ 10KΞ© resistor is connected between VCC and DATA of the DHT11 for stable communication.
The ESP32 serves this HTML interface to any device connected to the same Wi-Fi:
β¨ Auto-refreshes every 5 seconds with latest sensor data.
| DHT11 Pin | ESP32 Pin |
|---|---|
| VCC | 3.3V |
| GND | GND |
| DATA | GPIO 4 |
- ESP32 connects to your Wi-Fi network.
- It initializes the DHT11 sensor.
- Every 2 seconds, it reads temperature and humidity.
- It serves these values on a local web page that refreshes every 5 seconds.
Connected. IP: 192.168.1.42 Web server running... Client connected from ('192.168.1.17', 50762)
- π Live charts using JavaScript (Chart.js)
- π Save logs to file or cloud
- π€ Send alerts via email or Telegram
- π Deploy to internet using port forwarding
- βοΈ Kritish Mohapatra
- ποΈ 29 April 2025
Give it a β on GitHub and share with others!
.png)
