Sensor for detecting people in the room