An occupancy sensor is provided for determining whether a room is occupied. The occupancy sensor integrates a battery-powered PIR motion detector and a battery-powered Hall Effect switch, each of which communicates wirelessly with a controller, in a single housing.