
ESP32 Smart Home Automation with DHT11 Sensor and Relay Control
Build a smart home automation system using ESP32 to monitor temperature and humidity with DHT11 sensor and control appliances via relay, accessible via web interface.
Inclusive of all taxes
- Secure payments via Razorpay
- 7-day returns on defective items
- GST invoice on every order
Free delivery on orders above ₹2,000
Delivers in 4-7 business days
Check delivery at your pincode
₹2444.00
Inclusive of all taxes
Components
7 items
Difficulty
Intermediate
Build Time
3-4 hours
Project Details
How It Works
The ESP32 connects to your WiFi network and creates a web server. The DHT11 sensor continuously measures temperature and humidity, sending data to the ESP32. The ESP32 processes this data and displays it on the optional LCD. A web interface allows users to view real-time sensor readings and manually control the relay to switch appliances on/off. The system can be programmed to automatically control appliances based on sensor thresholds (e.g., turn on fan when temperature exceeds 30°C).
Prerequisites
Basic knowledge of Arduino programming, understanding of digital I/O pins, familiarity with WiFi concepts, and experience with breadboard prototyping. Users should also know how to install libraries in Arduino IDE.
What You'll Learn
Learn to program ESP32 for IoT applications
Understand how to interface DHT11/DHT22 sensors with microcontrollers
Create a web server on ESP32 for remote access
Control high-voltage appliances using relays safely
Implement WiFi communication for remote monitoring
Key Features
Continuous monitoring of temperature and humidity
Access system via browser from any device
Control appliances based on sensor readings or manual input
Local display of sensor readings
Control system from anywhere via network
What's Included in the Kit

| Component | Qty | Price |
|---|---|---|
![]() | 1 | ₹0.00 |
![]() | 1 | ₹395.00 |
![]() | 1 | ₹0.00 |
![]() | 1 | ₹106.00 |
![]() | 1 | ₹2.00 |
![]() | 1 | ₹171.00 |
![]() | 1 | ₹0.00 |
Operating Instructions
Pin Connections
| MCU Pin | Connected To | Purpose | Notes |
|---|---|---|---|
| GPIO 2 | DHT11 Data Pin | Digital input for sensor data | Requires 10kΩ pull-up resistor |
| GPIO 4 | Relay Module IN | Digital output to control relay | Active high or low depending on relay module |
| GPIO 21 | LCD SDA (if using I2C) | I2C data line for LCD | Optional connection |
| GPIO 22 | LCD SCL (if using I2C) | I2C clock line for LCD | Optional connection |
| 5V | DHT11 VCC, Relay VCC, LCD VCC | Power supply for components | Ensure total current within limits |
| GND | All component grounds | Common ground reference | Essential for proper operation |
Tools Required
Safety Precautions
Electrical
- ⚠Ensure proper insulation when working with AC appliances
- ⚠Do not exceed relay current rating
- ⚠Use appropriate power supply for ESP32 (5V)
Handling
- ⚠Handle relay module carefully to avoid electric shock
- ⚠Disconnect power before making wiring changes
Operating
- ⚠Do not connect high voltage directly to ESP32 pins
- ⚠Ensure proper grounding of all components
Frequently Asked Questions
Q:Can I use DHT22 instead of DHT11?
Q:How do I access the web interface?
Q:What appliances can I control with the relay?
Product images are for illustration purposes only. Actual products may differ in appearance, packaging, or specifications. See our Terms of Service.








