Door and Window Sensors 101: Every Opening
Contact sensors are the cheapest layer of home security and the most reliable. Here's how they work, where they go, and which ones to buy.
Prices in this article are typical U.S. retail, checked October 2026.
Section 1: Why is a contact sensor the one that never guesses? (Introduction)
A contact sensor reports one thing reliably: whether an opening is open or closed. It is cheap, battery-powered and local, which makes it the best first sensor for doors, windows, cabinets, a garage and a mailbox, and it never guesses.
A contact sensor is two pieces of plastic and a magnet. One goes on the door, one on the frame, and when they separate the sensor reports that the opening is open. There is no camera, no algorithm, and no interpretation. It is either closed or it is not.
That binary certainty is why contact sensors remain the backbone of every alarm system and one of the most useful automation triggers in a smart home. A motion sensor can be fooled by a pet or a curtain. A camera can miss a face. A contact sensor knows whether the door moved.
They are also cheap: $15 to $40 per opening, battery-powered, and installed with adhesive or two screws. For the price of one camera you can cover every exterior door and the windows at ground level, which is the layer that actually detects someone coming in.
This guide covers how the sensor works, where to put it, the difference between the hub-based options, and the automations that make it more than an alarm component. For the rest of the pillar, see the Security & Privacy hub, and for the system-level view, Home Security Systems 101.
Section 2: How does a contact sensor actually work?
Inside the larger piece is a reed switch: two thin metal contacts sealed in glass that close when a magnetic field is near and spring apart when it leaves. The smaller piece is just a magnet. Mount them so the magnet sits close to the switch when the door is closed, and the circuit is complete. Open the door and the circuit breaks.
That is the whole mechanism. It is why the sensor needs so little power, why the battery lasts years, and why it works when the Wi-Fi is down — the radio only transmits when the state changes.
The gap
The distance between the two pieces matters. Most sensors tolerate a gap of roughly half an inch to an inch when closed; beyond that, the magnet loses the switch and the sensor reports an open door that is actually shut. Check the specification for your model, and test with the app after mounting.
A recessed door or a thick frame can push the two pieces too far apart. The fix is a riser: a small plastic shim that brings the sensor forward. Ring sells one for $9.99; many sensors include spare adhesive spacers.
Sliding and French doors need a little more care. On a slider, mount the sensor on the fixed jamb and the magnet on the moving panel, and check the gap at both ends of the travel. On French doors, put one sensor on each leaf, or one on the active leaf and a surface bolt on the other.
Battery and tamper
Most contact sensors use a coin cell or a half-AA battery and last two to three years. Ring rates its contact sensor at about three years; Aqara rates its sensor at over two. The app should report battery level, and the sensor should warn you before it dies.
Better models include a tamper switch that reports when the cover is removed. That is worth having on an exterior door, where the first move in a break-in is often to pull the sensor off the frame.
Wired versus wireless
Wired sensors connect to an alarm panel and never need a battery, but they require running cable through a house. Wireless sensors are the default for retrofits and renters. The trade is battery maintenance and radio range, not reliability — a wireless contact sensor is one of the most dependable devices in the category.
What it does not detect
A contact sensor reports that an opening moved. It does not report a broken window that never opened, a lock being picked, or someone coming through a wall. For glass, you need a glass-break sensor; for an open door with no movement, a motion sensor. The contact sensor is the first layer, not the whole system. A pet door is another opening that needs its own access control; the smart pet door roundup compares the microchip and motorized options.
Some newer models use a Hall-effect sensor instead of a reed switch, which measures the magnetic field rather than a mechanical contact. The practical difference is smaller size and a more precise gap; the behavior is the same.
Section 3: Where should you put contact sensors?
The short answer is every opening that leads outside, plus a few inside that matter. The longer answer is about which ones actually get used.
The priority list
- Every exterior door, including the back door, the side door, and the garage entry. This is the first layer and the one that matters most.
- Ground-floor windows, especially those reachable from a porch, a fence, or a shed. Upper-floor windows matter less but are cheap to add.
- Sliding doors. Mount the sensor on the fixed frame and the magnet on the moving panel, and check that the gap stays within tolerance across the full travel.
- The garage overhead door. A tilt sensor or a contact sensor on the door reports whether it is closed, which is the “did I leave the garage open?” automation.
- Gates and sheds if they are part of the property you worry about.
- Inside: a medicine cabinet, a gun safe, a liquor cabinet, or a home office door. These are convenience and privacy automations rather than security.
Placement rules
- Put the sensor on the frame and the magnet on the door. The frame is stable; the door moves. The exception is a metal frame, which can block the radio — test the signal before committing.
- Mount high or low? High is out of reach and less visible; low is easier to reach for battery changes. On an exterior door, high is the better security choice.
- Keep the gap small. Align the two pieces with the alignment marks, close the door, and check the app. If it reports open, move the magnet closer or add a riser.
- Adhesive for renters, screws for owners. The adhesive pads are strong enough for a battery-powered puck, and they come off with a little heat. Screws are more secure and less likely to shift.
- Outdoor-rated only outdoors. A standard sensor is for interior use; a porch gate needs a model rated for weather.
- Test the radio path. Metal doors, foil-faced insulation, and distant hubs can weaken the signal. Pair the sensor, then walk it to the final spot and confirm it still reports.
Section 4: What do you need to buy alongside the sensor?
Contact sensors are not standalone devices. Each one talks to a hub, a base station, or a Thread border router, and that choice determines what you can automate.
| Sensor | Price | What it needs | Battery | Notes |
|---|---|---|---|---|
| Ring Alarm Contact Sensor (2nd gen) | $14.99 single, $29.98 for two, $59.99 for six | Ring Alarm base station | About 3 years | Slim magnet, tamper switch |
| Aqara Door and Window Sensor | $17.99 | Aqara Zigbee hub | Over 2 years | Peel-and-stick, Apple Home via hub |
| Eve Door & Window | $39.95 | Matter controller with a Thread border router | ½ AA, replaceable | No cloud, no subscription |
The Ring sensor is the cheapest per opening if you already own a Ring Alarm, and the six-pack brings the price to about $10 each. The Aqara sensor is the inexpensive pick for an Aqara or Apple Home setup, provided the hub is already there. The Eve sensor is the premium option for a Thread network: it stores nothing in a vendor cloud and needs no subscription, but it costs more and requires a Matter hub.
The hub math is the same as with any sensor: a $15 sensor that needs a $120 base station is not a $15 sensor. If you are buying a system anyway, the sensors are the cheap part. If you are not, the hub is the purchase and the sensors are accessories. The DIY security system roundup compares the kits that include a hub.
One more protocol note: Aqara also sells a P2 contact sensor that runs Matter over Thread for $29.99, which avoids the Aqara hub but needs a Thread border router. Buy the version that matches the hub you own, not the one with the better spec sheet.
A typical house needs six to ten sensors: three or four exterior doors, two or three ground-floor windows, the garage, and one or two interior cabinets. Price that list before you fall in love with a hub. The sensors are cheap; the hub is the commitment.
Section 5: What else can a contact sensor automate?
A contact sensor earns its price twice: once as a security sensor and again as an automation trigger.
- Entry lighting. Open the front door after sunset and turn on the hallway light. This is the automation guests notice, and it needs no voice command.
- HVAC pause. Open a window and pause the heating or cooling; close it and resume. It is the simplest energy automation in the house, and it works locally on a hub.
- Door-left-open alert. If the garage or back door stays open for five minutes, send a notification. This is the one that prevents the “we left the freezer open” disaster.
- Arming and disarming. A contact sensor on the door plus a smart lock can arm the system when the last person leaves and disarm it when the first one unlocks.
- Laundry and appliances. A contact sensor on a laundry door or a chest freezer reports whether it is closed. Cheap, and surprisingly useful.
- Guest mode. A sensor on a guest-room window can trigger a notification only when the house is armed, rather than every time someone opens it.
- Chime and announcement. A sensor on a back door can make a smart speaker chime or announce “back door open” instead of relying on a phone notification.
- Security integration. Most alarm systems treat contact sensors as zones; a sensor that is open when you arm the system should stop the arming, not trip the siren five minutes later.
The automation fail-safes guide matters here: keep the critical rules — window and HVAC, door-left-open — on a local hub so they run when the internet does not.
Section 6: How do you plan the install, and who should skip it? (Conclusion)
- Count the openings that lead outside. Front, back, side, garage entry, and the ground-floor windows. That number, not the square footage, decides how many sensors you need.
- Buy for the hub you own. Ring base station, Aqara hub, or Matter/Thread. A six-pack is the right shape for a house; a two-pack is right for an apartment.
- Install the doors first, then test every one. Pair the sensor, mount it, close the door, and confirm the app shows closed. Then open it and confirm the alert. Add windows after the doors work.
If a sensor keeps reporting open on a closed door, check the gap and the magnet alignment before replacing it. Most contact-sensor problems are installation problems.
Some homes should skip the category. If you have one door and a working deadbolt, a contact sensor adds an alert but not much security; a smart lock or a doorbell camera covers more. If you rent and cannot mount anything, adhesive sensors still work, but the alarm system they connect to may not be yours to install. And if you already have a monitored system, its sensors are the ones to extend.
A contact sensor will not stop anyone. It will tell you, immediately and without guessing, that an opening moved. At $10 to $40 per opening, that is the cheapest certainty in the smart home.
Where to buy
Door and window sensors on Amazon
Opens an Amazon search. As an Amazon Associate, we earn from qualifying purchases. No product in this guide was supplied or tested by a manufacturer.
Related reading
- Home Security Systems 101 — panels, monitoring, and what actually calls for help.
- Smart Locks 101 — the door itself, and what happens when the battery dies.
- The Smart Sensor Directory — contact, motion, presence and climate sensors compared.
- Automation Fail-Safes — keeping the rules running when the internet drops.
Sources
- Ring Alarm security system — Ring, base-station requirement and sensor compatibility checked October 2026
- Door and Window Sensor — Aqara, hub requirement, peel-and-stick mounting and two-year battery checked October 2026
- Door and Window Sensor P2 — Aqara US store, Matter-over-Thread version and price checked October 2026
- Eve Door & Window — Eve, Thread and Matter requirements, battery type and no-cloud positioning checked October 2026