Window sensors work by completing a magnetic circuit when the window is closed, which triggers an alert when the window opens and breaks that circuit.
That basic principle — a magnet and a reed switch — is what secures millions of homes. When your window is shut, the magnet keeps the sensor’s contacts closed. The moment someone slides the window open, the magnet moves away, the circuit opens, and your security system knows. Understanding exactly how that happens helps you install them right, avoid false alarms, and know what they can actually protect.
The Core Mechanism: Magnet Meets Reed Switch
Every contact-style window sensor has two parts. One part contains a reed switch — a tiny glass tube with two metal contacts inside. The other part is a magnet. You mount one piece on the fixed window frame and the other on the moving sash, so they line up when the window is closed. When the two are aligned, the magnet’s field pulls the reed switch contacts together, completing the circuit. That closed circuit signals “window shut” to your alarm panel, hub, or smartphone app. Open the window, the magnet pulls away, the contacts separate, and the change in state triggers the alert. Some newer sensors use a Hall-effect sensor instead of a reed switch, but the logic is the same: magnetic proximity equals closed, separation equals open.
What Window Sensors Detect — and What They Don’t
Window contact sensors detect one thing only: the open/closed state of the window they’re attached to. They won’t detect someone breaking the glass, crawling through the opening, or unlocking the latch from outside. That’s why wired home security systems pair them with glass-break sensors, which listen for the specific frequency of shattering glass, and motion sensors, which detect movement inside the room itself. A window sensor simply tells you the seal has been broken, and that’s a crucial piece of information — it’s your earliest possible warning that something’s wrong. The alert goes to whichever system you’ve connected: a hardwired alarm panel, a wireless control hub, a monitoring service, or directly to your phone via the security app.
Where Installation Goes Wrong
Most problems with window sensors come down to alignment. The gap between the magnet and the sensor needs to be small — common designs work reliably within about half an inch to 1.5 centimeters, depending on the specific product. Mount the two pieces too far apart, or on parts of the window that don’t move relative to each other, and the contacts never close properly. The result is a false alarm every time the wind blows, or worse, a sensor that never registers when the window actually opens. The rule is simple: mount the magnet on the moving sash and the sensor on the stationary frame, with the two facing each other at the closest possible gap when the window is shut.
If you’re shopping for window sensors or replacing an existing system, our tested roundup of the best alarm window sensors breaks down the options by compatibility, range, and installation ease — including which models play nice with Alexa, Google Home, and ADT-style panels.
References & Sources
- Vivint. “How Do Window Sensors Work?” Describes the magnet-and-reed-switch mechanism and typical installation.
- Security.org. “Window Sensors: How They Work and What to Look For.” Explains the difference between contact sensors and glass-break sensors.
- Digital Trends. “How Does a Window Sensor Work?” Details the Hall-effect sensor alternative and common installation mistakes.
