1) This project presents an automatic room light controlling system using an 8051 microcontroller and two infrared sensors that detects movement to turn lights on when someone enters and off when the last person leaves.
2) The system is designed to count the number of visitors entering and leaving to determine when to turn the lights on and off.
3) When a person enters they are detected by the outer sensor first, then the inner sensor, turning on the lights and incrementing the counter. Lights remain on and counter increments until the last person leaves.