A door and window sensor is the least glamorous thing in a smart home and quietly one of the most useful. It is two pieces: a magnet on the moving part, a sensor on the frame. When they separate, something happens — your phone buzzes, a siren sounds, the hall light comes on, the camera starts recording, the air conditioning stops cooling the street. The hardware is genuinely simple, which is why almost every one of them "works."
So the ranking below is not really about sensors. It is about radios. Every sensor here speaks a different one — Thread, Z-Wave, Bluetooth, Zigbee, LoRa — and that single choice decides which hub you need, which app you live in, which ecosystems can see the sensor, and whether it still works when your internet drops. Buy the wrong radio and you own a very reliable gadget that can't talk to anything you already have. If you want the mechanical background first, our guide to how home security sensors work covers contact, motion and glass-break sensors before you shop.
The usual caveat, and it's on every page here: we don't run a test lab. We compiled each sensor's published specifications from the manufacturer's own documentation and its live retail listing, read the compatibility claims those makers publish, and say plainly when a figure isn't published rather than inventing one. Where a spec is missing, you'll see us say so in the picks — that absence is information too. Our methodology explains the whole process.
Start with the hub you already own
This is the entire decision, and most buying guides bury it. Four of the five sensors here do nothing on their own; they need a hub, and they need a specific kind of hub. If you already own a Ring Alarm base station, the Ring sensors are almost automatically correct. If you own a SmartThings or Aeotec hub, or an Echo with a Zigbee radio in it, the Zigbee four-pack is the cheapest sensible answer. If you own a HomePod, a recent Apple TV or an Aqara hub, you have a Thread border router, and the Aqara P2 unlocks all four major ecosystems at once.
Work in that order — hub first, sensor second — and the shortlist usually collapses to one obvious pick. Work the other way round, buying the sensor with the best reviews and then discovering it needs a hub you don't own, and you've turned a $30 purchase into a $130 one. If you have no hub at all and don't want one yet, that's a real answer too, and it points at exactly one product on this page: the SwitchBot, which runs over Bluetooth straight to your phone. If you're choosing a hub at the same time, our Matter hub roundup is the right companion page.
The radios, in one paragraph each
Threadis the new one, and it's the reason the Aqara wins. It's a low-power mesh, and because it carries Matter, a Thread sensor shows up as a native device in Apple Home, Alexa, Google Home and SmartThings simultaneously. The catch is the Thread border router — the box that bridges Thread to your home network. Our guide to what a Thread border router is explains which devices you may already own that quietly do the job.
Zigbee is the old, cheap, extremely well-proven mesh. It needs a hub, it will never speak Matter directly, and it is dramatically cheaper per sensor. Z-Wave is the same idea on a less-crowded frequency and is what Ring Alarm uses internally; our Zigbee vs Z-Wave guide covers why a security system tends to pick Z-Wave. Bluetoothneeds nothing but your phone and reaches about as far as you'd expect. And LoRa, YoLink's choice, trades bandwidth for absurd range — a quarter mile in open air — which is exactly the trade you want for a shed. If the whole protocol landscape is new to you, Matter vs Thread vs Zigbee is the plain-English version.
Battery life is the spec that actually annoys you
Nobody buys a contact sensor for its battery. Everybody regrets one with a bad battery. These things live on window frames you can't reach without a chair, and you're likely to own six or eight of them, so a two-year cell across eight sensors means changing a battery every three months somewhere in the house. That's the difference between a system you forget about and a nagging chore.
The published figures split the field cleanly. YoLink claims up to five years from two AA cells. Ring states approximately three years from two CR2032s. SwitchBot publishes a typical three years from two AAAs under a stated daily-use pattern — the most transparent claim here, because it tells you the assumptions. Aqara publishes no figure at all for the P2, only that life varies with your border router. THIRDREALITY doesn't publish one we could verify. Two of our five picks therefore have honest unknowns, and we'd rather tell you that than quote a number we made up.
What you're actually going to do with them
There are two jobs, and they want different sensors. The first is security: a sensor that's part of an armed system, that sounds a siren and can escalate to a monitoring center. Only the Ring does that properly here, because it's a component of a real alarm rather than a standalone gadget — and whether the escalation is worth paying for is covered in do you need a monitoring plan. The second job is automation and awareness: knowing the back door is open, getting a nudge that the garage has been up for twenty minutes, killing the heating when a window opens, turning on a light when someone comes in after dark. Every sensor here does that one, and it's honestly where most people get the daily value — smart home automation ideas has plenty of worked examples.
Be honest with yourself about which job you're buying for. If it's security, you're really shopping for a system, and our DIY home security systems roundup is the better starting point — the sensors come in those boxes. If it's awareness and automation, buy the sensors that match your hub and skip the alarm entirely. Plenty of people genuinely don't need a siren, and the no-subscription systems page covers the middle ground where you get alerts without a monthly bill.
Count your openings before you count your dollars
Walk the house and count every door and ground-floor window you'd actually want monitored. Most people land between six and ten, and that number changes the answer more than any spec does. At one or two openings, a single premium sensor is fine and the Aqara is easy to justify. At eight, per-sensor cost dominates everything, and a multipack — the Ring six-pack if you own the base station, the Zigbee four-pack if you own a Zigbee hub — will save you more than any feature on this page is worth.
Check whether you already own the hub
Before you buy anything, open the app you use most and look at what's already there. A HomePod, a HomePod mini, an Apple TV 4K, a Thread-capable Echo, an Aqara hub or a SmartThings Station means you have a Thread border router and the Aqara P2 is live for you. An Aeotec or SmartThings hub, a Hubitat, a Homey, a Home Assistant box or an Echo with a built-in Zigbee radio means the THIRDREALITY four-pack is the cheap, correct answer. A Ring Alarm base station means the Ring six-pack. This one check settles the purchase for most readers.
Decide if you need a siren or just a notification
A notification tells you. A siren tells the neighborhood — and, on a paid plan, tells a monitoring center. Those are different products and different budgets. Contact sensors bought for awareness are a $10-to-$25-per-opening purchase with no running cost. Contact sensors as part of a monitored alarm mean a base station, and usually a monthly fee for the professional dispatch and cellular backup that make monitoring meaningful. Our Ring Alarm review walks through what that actually costs, and do I need a security system or just cameras is worth reading before you commit to either.
Mind the gap — literally
The one genuine installation gotcha with contact sensors is alignment. The magnet and the body have to sit close together and roughly parallel when the door or window is shut; SwitchBot, for example, specifies less than about 1.2 inches between the two parts. Doors with thick weatherstripping, uPVC windows with deep recesses and crown-molded frames all create a gap that's too wide, and the sensor reads "open" permanently. Measure before you buy a six-pack, and check whether the brand sells a spacer or riser — Ring, for instance, sells one specifically for trim and molding.
Buy for the ecosystem you'll have in three years
Sensors are the cheapest part of a smart home and the most annoying to replace, because replacing them means peeling adhesive off eight window frames. That asymmetry argues for Matter over Thread if you can support it: it's the only radio here that doesn't tie you to one company's hub and app. If you're already deep in Ring, or already running Home Assistant on Zigbee, the ecosystem question is settled and you should buy accordingly — but if you're starting fresh and buying a hub anyway, buying into Thread is the choice you're least likely to regret. Our what works with Matter guide tracks where support genuinely exists today.