A beautiful, responsive web-based smart home control panel with sunset glass theme, built on ESP8266.
- 🌡️ Temperature & Humidity Monitoring - Real-time DHT11 sensor readings
- 🔆 Ambient Light Detection - Automatic day/night detection with LDR
- 💡 Smart Device Control - Control relays and LED via web interface
- 🎨 Beautiful UI - Sunset glass theme with smooth animations
- 📱 Responsive Design - Works on desktop, tablet, and mobile
- 🔌 Manual/Auto Modes - Switch between automatic and manual control
- ⚡ Real-time Updates - Auto-refreshes every 3 seconds
| Component | Quantity | Connection |
|---|---|---|
| ESP8266 (NodeMCU) | 1 | Main Controller |
| DHT11 Sensor | 1 | D1 (GPIO5) |
| LDR with 10K resistor | 1 | D2 (GPIO4) |
| 5V Relay Module | 2 | D5 (GPIO14), D6 (GPIO12) |
| LED (with resistor) | 1 | D3 (GPIO0) |
| Breadboard & Jumper Wires | - | - |
| 5V Power Supply | 1 | - |
| Pin | GPIO | Component | Function |
|---|---|---|---|
| D1 | GPIO5 | DHT11 | Temperature/Humidity |
| D2 | GPIO4 | LDR | Light Detection |
| D3 | GPIO0 | LED | Status Indicator |
| D5 | GPIO14 | Relay 1 | Living Room Light |
| D6 | GPIO12 | Relay 2 | Bedroom Fan |
- Connect all components as per the pin configuration
- For LDR: Connect one end to 3.3V, other end to D2 with 10K pull-down resistor
- For DHT11: Connect VCC to 3.3V, GND to GND, DATA to D1
- For Relays: Connect IN pins to D5/D6, VCC to 5V, GND to GND
- Install Arduino IDE
- Add ESP8266 board support:
- File → Preferences → Additional Boards Manager URLs:
- Add:
http://arduino.esp8266.com/stable/package_esp8266com_index.json
- Install required libraries:
- ESP8266WiFi
- ESP8266WebServer
- DHT sensor library (by Adafruit)
- Open
SmartHomeDashboard.inoin Arduino IDE - Update WiFi credentials:
#define WIFI_SSID "Your_WiFi_SSID" #define WIFI_PASSWORD "Your_WiFi_Password"
Made with ❤️ by Amit Kumar Prasad
If you find this project useful, please give it a ⭐ on GitHub!