Occupancy sensors are responsible for detecting human presence in a specific room or space. These sensors can either automatically scan a room for occupants or be triggered by motion when a person enters or exits an area. One common example of occupancy sensors in real life are seen in bathrooms and other spaces where lights turn on automatically when a person enters. In this example, the lighting system uses an occupancy sensor.