An IoT system that detects room occupancy with PIR sensors connected to an ESP32. Lights switch through relay modules, and the system publishes its state over MQTT for remote monitoring on a web dashboard. It cuts energy wasted lighting empty rooms.