This paper describes a circuit which is used for controlling the room lights according to the count of persons in the room and simultaneously works as a security system when the camera is attached. When somebody enters into the room then the counter will be incremented accordingly the LED light in the room will be switched ON and when any one leaves the room then the counter will be decremented. The light will be only switched OFF when the room is vacant. The number of the LED lights will be ON according to the total number of persons inside the room and the count will be displayed
Keywords : LED, Microcontroller, Infrared, IR Sensor, Security system.