An Arduino project that automates room lighting based on real-time occupancy detection using PIR sensors and I2C LCD. Built to simulate smart energy-saving systems.
- Arduino Uno
- 2 x PIR Sensors (Entry & Exit)
- I2C 16x2 LCD Display
- 1 x LED (Simulates room light)
- 220Ξ© Resistor
- Jumper wires, Breadboard
| Component | Arduino Pin |
|---|---|
| PIR Entry | D2 |
| PIR Exit | D3 |
| LED | D13 (via 220Ξ©) |
| LCD SDA | A4 |
| LCD SCL | A5 |
| LCD VCC | 5V |
| LCD GND | GND |
- Motion at entry PIR β
count++ - Motion at exit PIR β
count-- - If count > 0 β LED ON & LCD shows occupancy
- If count = 0 β LED OFF & LCD shows βRoom Emptyβ
- Live room occupancy tracking
- Automated lighting control
- LCD status display
- Energy-efficient simulation
- Add buzzer alerts
- Add LDR for light-based auto mode
- Connect with Wi-Fi module (e.g., ESP8266) for IoT version

