Skip to main content
  1. Home
  2. Smart Home
  3. Evergreens

How does a window sensor work?

Add as a preferred source on Google

Window sensors are a critical part of any home security system. When cameras fail, a window sensor becomes your last line of defense. Install them on all your windows, and you will know when an intruder attempts to access your house using one of your windows.

Some window sensors use loud chimes or siren-like alarms, while others send a notification to your phone. Regardless of how they alert you, most window sensors work the same way. Knowing how these window sensors work will help you install them properly, so they don’t fail you when you need them the most.

Recommended Videos

What is a window sensor?

Quirky Tripper window sensor on window.

A window sensor package is composed of two small units with adhesive backing or screws for mounting. One unit attaches to the window, and another unit affixes to the stationary window frame. The two sensor units typically are positioned close together in a location on the window where they cannot be seen or tampered with from the outside. Once the sensors are activated, an alarm will sound, and alerts will be sent out when the window is opened. It’s not an always-on form of security. Most window sensors have a switch that lets you turn them off, so you can open your windows without triggering the alarm.

Magnetism is key

Scout window sensor being installed on window.
Image used with permission by copyright holder

Window sensor alarms may seem sophisticated, but they are surprisingly simple. At their core, window sensors rely on magnetism and a basic electronic switch. Remember how we said there were two units in a window sensor package? They each serve a different purpose. The window-based unit contains a small magnet that interacts with the reed switch and security system inside the window frame unit. The magnet is a trigger that controls the switch inside the window frame unit. It is this reed switch that turns on and also turns off the security system. This security system can be as simple as a loud audible alarm or as complex as a wireless module that alerts your smartphone.

What is a reed switch?

A closeup look at a Reed Switch window sensor.
André Karwath/Wikipeida

You may have never heard of a reed switch, but you likely use one every day. If you have a laptop that turns on when you open it and turns off when you close it, there likely is a reed switch and magnet somewhere in the casing. Kindles, iPads, and other tablets also use a reed switch that interacts with a magnetic cover to turn the display on and off. Reed switches are found in everything from dishwashers to weather anemometers. They were first invented in the 1930s by Walter B. Elwood of Bell Laboratories.

The reed switch is a relatively simple but very effective switch. It is composed of two or more flat ferrous reeds that are magnetized. These reeds are enclosed inside a glass capsule filled with an inert gas that helps to keep them free from external contaminants and corrosion.  These reeds move closer to each other and eventually make contact in the presence of a magnet. They then break apart when the magnetic field is moved away. These reeds move slowly and smoothly, making contact along their flat surface. It’s this slow and secure contact that makes the reed switch so reliable and long-lasting.

How the reed switch works in a window sensor

Scout window sensor being installed on window.
Image used with permission by copyright holder

The reed switch is the core component in a window alarm. When the window is closed, the magnet causes the reeds to move together until they touch. When the reeds are in contact with each other, they complete the electric circuit inside the window sensor, allowing electricity to flow in a continuous loop. When the windows open, the magnet moves away, and the reeds break apart. This opens the circuit, which halts the electrical current and triggers the security system inside the window sensor. The security system then sounds an alarm or sends out alerts.

Kelly Hodgkins
Kelly's been writing online for ten years, working at Gizmodo, TUAW, and BGR among others. Living near the White Mountains of…
I dug these last-hour Prime Day smart home, laptop, and accessory deals that are irresistible
Deals up to 60% off, a few hours left, and no reason to wait any longer.
Electronics, Phone, Speaker

Amazon's Prime Day 2026 sale is in its final hours, giving you your last chance to get your hands on the best smart home, security, tablet, laptop, and accessory deals. I've pulled together the picks that are still live, still deeply discounted, and still worth buying before the sale ends tonight or until the stock lasts.

Best Amazon Prime Day deals on smart home devices

Read more
The Google Home Speaker is impressive, until you look at the power cable
Sphere, Electronics, Speaker

The Google Home Speaker hasn't even started shipping yet, but one lucky buyer managed to grab one early and share their first impressions. While most of the news is positive, there's one detail that won't sit well with anyone who cares about repairability.

For the unaware, Google announced the speaker back in October 2025, and pre-orders went live last week. Priced at $99, it's the company's first new speaker in six years, so people have plenty of questions. 

Read more
I went looking for the best Prime Day bargains on Google hardware, and these are the winners
Prime Day discounts are hitting everything from Pixel phones to Nest cameras and the Pixel Watch 4. After digging through the listings, these are the deals that stood out the most.
Google Pixel 10 vs Pixel 10 Pro

Some Prime Day deals feel like discounts in name only, but after digging through this year's sale, I found a few Google deals that are genuinely worth your attention. Several Pixel 10 models are seeing triple-digit price cuts, the Pixel 10 Pro Fold is at its lowest price yet, and a few Nest products are available at prices that are actually hard to ignore. Whether you're looking for a new smartphone, smartwatch, streaming device, or smart home upgrade, these are the Google deals I'd recommend before Prime Day wraps up on June 26.

Pixel 10a

Read more