This project implements a real-time IoT-based smart lighting system that optimizes energy consumption using environmental sensing and automation logic.
It demonstrates a complete IoT pipeline:
Data Acquisition → Communication → Processing → Storage → Visualization
- Motion-based automatic lighting (PIR)
- Ambient light-based control (LDR)
- Timer-based auto OFF system
- Manual control via mobile
- Dual modes: AUTO & MANUAL
- Real-time monitoring dashboard (Grafana)
Sensors → ESP8266 → MQTT (dev.coppercloud.in)
→ Node-RED → MySQL → Grafana
- ESP8266 (NodeMCU)
- DHT11 Sensor (Temperature & Humidity)
- PIR Sensor (Motion Detection)
- LDR Sensor (Light Intensity)
- Relay Module (Lighting Control)
- MQTT Broker: dev.coppercloud.in
- Arduino IDE (ESP8266 Programming)
- Node-RED (Data Processing)
- MySQL (Database Storage)
- Grafana (Visualization Dashboard)
- If motion detected (PIR = 1) AND low light (LDR) → Light ON
- If no motion for specific duration → Light OFF
- User controls relay via mobile
- Overrides automation
project-iot/
├── esp8266_code/
├── node-red/
├── database/
├── dashboard/
├── images/
- ✅ End-to-end IoT pipeline implementation
- ✅ Real-time MQTT communication
- ✅ Data persistence using MySQL
- ✅ Analytics dashboard using Grafana
- ✅ Supports both automation and manual control
- AI-based motion prediction
- Energy usage analytics
- Multi-room scalability
This system demonstrates how IoT can be used to build intelligent, energy-efficient automation systems using real-time data and analytics.

