The system shows the number of people inside an elevator with the help of the 7 segment display. Each pair consists of 2 pairs of sensors placed at some distance from each other in the opposite direction. The system includes pairs of infrared sensors that are placed near the elevator door. These sensors detect when a person enters an elevator and opens the elevator door and simultaneously increases the counter for the number of people entering the elevator. The IR transmitter is used to transmit IR rays directly to the receiver receiving the input and feeds it to a microcontroller 8051. The microcontroller processes this received input. At this time the system also counts the number of people present and increases a meter on each arrival and decreases when a person leaves the elevator. The system even includes a buzzer to display an alarm. The buzzer starts ringing as soon as more people enter the elevator than the limit of the elevator that is already set and the buzzer stops ringing only when the people inside the elevator come out of the elevator. This will cause the counter to decrease and the buzzer to stop sounding as soon as the counter is less than or equal to the limit of the elevator set.