The sensor relies on magnetic movements to capture the opening / closure of the door or window segments. It is advisable to position the smaller sensor of the pair on the segment which is more readily exposed to the exterior (exposure to rain / sun) since the bigger sensor has battery & circuitry enclosed.