An ESP32-based Smart Environmental Monitor that measures temperature and humidity using a DHT22 sensor. The system displays real-time readings on a 16x2 I2C LCD and the Serial Monitor while using Green, Yellow, and Red LEDs to indicate Normal, Warning, and Critical environmental conditions.
This project is designed to monitor environmental conditions using an ESP32 microcontroller and a DHT22 temperature and humidity sensor. The measured values are displayed on both the I2C LCD and the Serial Monitor. Three LEDs provide a quick visual indication of the current environmental status.
- Real-time Temperature Monitoring
- Real-time Humidity Monitoring
- 16x2 I2C LCD Display
- Serial Monitor Output
- Green LED for Normal Condition
- Yellow LED for Warning Condition
- Red LED for Critical Condition
- Sensor Error Detection
- ESP32 Development Board
- DHT22 Temperature & Humidity Sensor
- 16x2 I2C LCD
- Green LED
- Yellow LED
- Red LED
- 220Ω Resistors
- Jumper Wires
| Component | ESP32 Pin |
|---|---|
| DHT22 Data | GPIO18 |
| Green LED | GPIO15 |
| Yellow LED | GPIO16 |
| Red LED | GPIO17 |
| LCD SDA | GPIO8 |
| LCD SCL | GPIO9 |
| LCD VCC | 5V |
| LCD GND | GND |
- The ESP32 reads temperature and humidity data from the DHT22 sensor every 2 seconds.
- The sensor readings are displayed on the I2C LCD.
- The same readings are printed on the Serial Monitor.
- The LEDs indicate the environmental condition:
- 🟢 Green LED → Normal
- 🟡 Yellow LED → Warning
- 🔴 Red LED → Critical
- If the sensor fails to respond, an error message is displayed and the Red LED blinks.
Add your Wokwi circuit screenshot here.
Add a screenshot of the LCD displaying temperature and humidity.
Add a screenshot of the Serial Monitor.
- Wi-Fi Connectivity
- IoT Cloud Integration (ThingSpeak/Blynk)
- Mobile Notifications
- Data Logging
- Web Dashboard