This circuit automatically controls room lights and locks based on the number of people in the room. It uses 555 timers, a 74LS192 decade counter, 74LS47 7-segment display driver, and HEF4002B 4-input NOR gate. The counter tracks the number of people and displays it. When someone enters, it increases the count and turns on the lights. When empty, it turns off the lights. The NOR gate controls the relay for locking/unlocking the door based on the people count. It can be useful for monitoring room capacity and conserving energy by automatically turning lights off. Future improvements could include remote monitoring and voice alerts.