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

""
The Best Home Security Systems in Canada 2025
Learn about 2025's best home security systems for Canada with research from SafeWise experts. From...
SW_Article_Medical Alerts with the Best Battery_Featured image with logo
Best Medical Alert Systems 2025
We researched the best medical alert systems to find reliable options that can empower you...
Man and woman couple wife husband set up surveillance security camera
Best Apartment Security Systems of 2025
In 2025 we tested the best apartment security systems and cameras. They offer security solutions...
diy-security-system-on-ipad
Best DIY Home Security Systems of 2025
SimpliSafe is the best DIY home security system because it's cost-efficient, effective, and easy to...