How Occupancy Sensors and Vacancy Sensors Work