How Does a Window Sensor Work?

Why you can trust SafeWise
products considered
250+
research hours in 25+ in-home tests
10k+
years of combined experience
176+
homes and people protected
10M+

For over 11 years, SafeWise experts have conducted independent research and testing to create unbiased, human reviews. Learn how we test and review.

Window sensors are must-haves for comprehensive home security systems—they can promptly notify you if someone attempts to access your home through a window.

Here’s how these devices work: A switch and a magnet attach to a window frame and pane, and as long as the window stays closed, the magnet keeps the switch’s circuit intact. When the window is opened and the magnet is pulled away from the switch, the circuit opens, which sends a signal to the control panel to sound the alarm.

Protect your property
Sign up for our weekly newsletter to get the latest deals, home security tips, and in-depth reviews.

By signing up, you agree to our Terms and Conditions and Privacy Policy.

The Anatomy of a Window Sensor

There are wired and wireless window sensors available, although most homeowners opt for the wireless version to avoid the mess of cords. Most window sensors, like door sensors, are composed of magnets and reed switches.

Reed switches are commonly used in everyday household items. When you close a laptop and the screen goes dark, that’s usually the work of a reed switch. A window sensor works much the same way. A reed switch with a small circuit inside sits on the frame of the window, while a magnet attaches to the pane, right next to the switch. When the magnet holds the switch’s metal contacts together—when the window is closed—an electric current flows in a continuous loop.

When the two pieces separate—when the window opens—the electrical current stops flowing and the circuit deactivates. The sensor then signals the security control panel, triggering an alarm.

Installing Window Sensors

Like their door sensor counterparts, window sensors take only a few minutes to install. You can use a strong adhesive to attach the sensor to the window. Place the main sensor on the window frame and attach the smaller piece to the window pane.

When the window is closed, the two pieces should be parallel with only a small space between them. If they aren’t placed evenly enough, they won’t maintain a circuit. When your window is pulled open, the two pieces will separate, and the sensor will alert the control panel. For more comprehensive protection, you should have a sensor placed on every window in your home.

Read more: How to Install Entry Sensors

With some systems, you can customize how and when your window sensors release an alarm. You may want to receive an alert only if a window opens when your alarm is armed. Or, you may want to hear a notification bell any time a window opens, regardless of whether the main alarm is set.

Like any device, window sensors require some maintenance. If you don’t use a strong enough adhesive, you may have to reapply the sensor if it falls off. The sensor may also eventually run out of batteries. If a window sensor sets off a false alarm or malfunctions, notify your home security company to replace it.

There are a variety of window sensors on the market, some of which offer unique features or integrations. Check out our guide to door and window sensors for comprehensive reviews of our top picks.


Compare the best home security systems

Celeste Tholen
Written by
Celeste has dedicated her decade-long career to reporting and reviews that help people make well-informed decisions. She oversees editorial strategy and production for SafeWise, with a goal to help everyone find the information they need to make their homes and lives safer. Prior to SafeWise, she worked as an editor and reporter for KSL and Deseret News. She holds a Bachelor's degree in Journalism. In her free time, she volunteers at the local botanical garden and writers for the community newspaper.

Recent Articles

Man and woman couple wife husband set up surveillance security camera
Best Apartment Security Systems of 2024
In 2024, we tested the best apartment security systems and cameras. They offer security solutions...
woman adjusting thermostat in bright home
The Best Home Security Systems and Alarm Companies of 2024
After thousands of hours of tests and research, we picked Vivint and SimpliSafe as the...
small yellow single family home
Abode vs Ring: Which security system is better?
Abode reigns over Ring in this DIY system face-off, but it’s not a clean sweep....
man pointing at smart home control app on a tablet
The Best Smart Home Security Systems
We’ve tested and researched smart home security systems to help you find the right DIY...