A door and window sensor is a two-part reed Switch: a magnet on the moving part, a sensor body on the frame. When the magnet moves more than about 15–20 mm away, the circuit opens and the sensor reports “open”. Fit the body on the fixed frame, the magnet on the door or sash, keep the gap under 10 mm when closed, and align the two marks — almost every “it says open when it is shut” problem is alignment or gap, not a faulty unit.
This guide covers windows, doors, sliding doors, garage doors and the awkward cases, plus the automations that are actually worth setting up. Smart Switch Series: Models, Specs, MOQ
Fit it in five steps
- Clean both surfaces with alcohol and dry them. Adhesive on paint that is flaking, or on dusty uPVC, fails within weeks.
- Dry-fit first: hold the two parts together in the closed position and watch the app or the LED. Find the position Where “closed” is stable.
- Mount the larger body on the fixed frame so the battery and button stay accessible; put the small magnet on the moving door or sash.
- Mind the gap: keep the closed gap under 10 mm and the faces parallel. On uPVC windows with a deep rebate, use the slim spacer or the narrow magnet edge.
- Press for 30 seconds and leave the adhesive 12 hours before testing repeatedly.
Doors
- Front and back doors: top corner on the latch side, body on the frame. Top mounting keeps it out of the way of bags, pets and small children.
- Which side: the hinge side works too, but the sensor must sit very close to the hinge to avoid a large travel arc — latch side is easier.
- Metal doors: a steel door or a steel frame can shield the magnet slightly and, more importantly, weaken the radio link. Test before sticking, and consider a Zigbee repeater nearby.
- French and double doors: one sensor per leaf, or one on the active leaf plus a second on the other if you want to know which one is open.
Windows
- Casement and tilt-and-turn: top corner opposite the handle, magnet on the sash. Remember a tilt-and-turn window has two open states — if you want to know which, add a second sensor or use a handle-position sensor.
- Sliding sash and patio doors: mount at the meeting rail in the closed position, keeping the two parts parallel as they pass. The gap on sliders is often larger, so check the spec (some sensors tolerate 20 mm+).
- Rooflights and skylights: fine, but keep the sensor body Where condensation will not drip on it.
Awkward cases
- Garage and roller doors: use a sensor rated for outdoor or garage use (temperature range matters) or a tilt sensor on the door panel, which reports angle rather than contact.
- Gates and sheds: choose IP-rated outdoor sensors and expect shorter battery life in cold weather.
- Fridges and freezers: mount externally; the magnet works through the door seal, and it is a cheap way to catch a door left ajar.
- Mailbox and letterbox: a small sensor plus a notification is a genuinely useful, low-cost automation.
Automations worth setting
- Heating off when a window is open for more than two minutes, back on when it closes — the single most useful one.
- Arm the alarm mode only when all external doors report closed, so you never arm with a door ajar.
- Night alert if a ground-floor door opens between 00:00 and 05:00.
- Child and Pet safety: a chime when a specific door opens, Without triggering a full alarm.
- Left-open reminder after 10 minutes for an external door, and for the fridge after 2 minutes.
Frequently Asked Questions
How do I stop a door sensor reporting open when it is closed?
Check the gap and the alignment first: the two marks should face each other and the closed gap should be under 10 mm. Deep window rebates and warped doors are the usual culprits — use a spacer or move the magnet.
Which part goes on the door and which on the frame?
Sensor body on the fixed frame, magnet on the moving door or window. It works the other way round, but mounting the body on the frame keeps the battery change easy and avoids cable or Wiring strain. Smart Switch for Water Heater and AC
Do door sensors work on sliding doors?
Yes, mounted at the meeting rail so the two parts stay parallel as the panel slides. Watch the gap: some sliders sit further apart, so check the sensor’s maximum operating distance. Reolink vs Tuya Security Camera
How long does the battery last?
Usually one to two years for a coin-cell contact sensor. Cold garages and outbuildings shorten that considerably, and the app’s low-battery notification is the only warning you get.
Can one sensor cover two doors?
No. One sensor covers one opening. For double doors you need one per leaf if you want to know which leaf is open.
Do they work without internet?
Contact detection and local automations run on the hub and keep working. Cloud routines and remote notifications need a connection.
Related guides
- Zigbee vs WiFi: which to use for each device
- Where to place water leak sensors
- Motion sensors: PIR motion detectors for smart homes
Browse door, window and leak sensors · Ask us about your window types
Related Articles
- Smart Door Sensor : How to Choose the Best WiFi Door & Window Sensor
- Where to Place Water Leak Sensors in a House
- The X6-F Smart Large Screen Doorbell: Weatherproof Two-Way Video Doorbell Guide
- The X6 Visual Intelligent Doorbell: No WiFi Two-Way Video Doorbell Guide
- The X3 Smart Visual Doorbell: No WiFi Required Two-Way Video Doorbell Guide
You Might Also Like
X3 Smart Visual Doorbell – 4.5 Inch Screen, 300K Pixels, Wide Angle Lens, Two-Way Voice, Full Color Night Vision Original price was: $79.96.$67.96Current price is: $67.96.
Solar Outdoor Courtyard Wall Light, Magnetic Mount Motion Sensor Solar Security Light for Home Patio Garden Price range: $19.96 through $22.96
Tuya Zigbee Solar Rainwater Leak Sensor – Smart Home Water Detection Alarm with AI Automation Original price was: $35.96.$26.99Current price is: $26.99.
Solar Outdoor Patio Garden Light Waterproof LED Ambient Lantern Price range: $5.96 through $9.96📌 This article is part of our Complete Sensor Hub — more guides and buying tips inside.






