. "If the sensor is mounted on the frame, and there is a magnet on the door, the thing is a simple switch." . . .