A pantry with elegant glass French doors is a classic design choice that can create a maddening home automation problem. The light, meant for convenience, flashes on and off every time someone walks down the hall. This isn’t a flaw in the motion sensor; it’s a symptom of a common installation that ignores the physics of how these devices actually work.
Fortunately, achieving a seamless, intelligent pantry is a matter of precision. By understanding how a sensor perceives its environment, you can create a detection zone perfectly contained within the pantry walls. This guide outlines the definitive method for installing a Rayzeek motion sensor to activate only when you need it and ignore hallway traffic completely.
The Hallway Problem: Why Glass Doors Cause False Triggers
First, let’s correct a common misconception: the sensor is not “seeing” through the glass. While transparent to us, standard glass is almost completely opaque to the long-wave infrared radiation your body emits. The technology at the heart of most motion sensors is Passive Infrared (PIR), which is designed specifically to detect this thermal energy.

A PIR sensor works by monitoring a room’s ambient infrared signature. When a heat source like a person moves into its field of view, the rapid change in that signature is interpreted as motion, triggering the light. The problem with a glass-door pantry is one of geometry. A sensor placed on the ceiling or a back wall has a wide, conical field of view that spills past the door frame and into the hallway. Its peripheral vision catches a passerby, causing the false trigger.
The Flawed Approach: Debunking the Behind-the-Glass Mount
An instinctive but flawed solution is to mount the sensor inside the pantry directly behind a glass pane, hoping it can “look” into the room. This approach fundamentally misunderstands how PIR technology works.
Get Inspired by Rayzeek Motion Sensor Portfolios.
Doesn't find what you want? Don't worry. There are always alternate ways to solve your problems. Maybe one of our portfolios can help.
Because glass blocks the necessary infrared wavelengths, a sensor placed behind it is effectively blind to the thermal signature of a person entering the room. This installation simply guarantees failure and misses the opportunity for a truly responsive system.
The Strategic Solution: Inside-Corner Placement and Sightline Control
The most effective strategy is careful physical placement. The goal is to position the sensor so its natural field of view is directed away from the doorway and contained entirely within the pantry. The ideal location is an inside corner on the wall adjacent to the door.
Identifying the Optimal Corner
Stand in the pantry doorway and look inside. The best corners for mounting are on the front wall, to the left or right of the door frame. A sensor placed here will naturally look back into the pantry, across the shelves. Its line of sight will be parallel to the doorway, not pointing out of it. This simple change in position solves the vast majority of false triggers.
Angling for a Contained Detection Zone
Once you’ve selected a corner, angle the sensor slightly inward and downward. Aim the center of its detection cone toward the far, back corner of the pantry. This ensures the widest part of its coverage is deep inside the space, while the edges of its view remain well within the pantry walls and far from the hallway.
Maybe You Are Interested In
Strategies for Challenging Layouts
In very small, narrow, or shallow pantries, a corner mount might still allow the sensor’s view to clip the doorway. In these cases, the best position is often on the ceiling but pushed as far back into the pantry as possible. From here, angled back toward the door, the sensor’s view will primarily cover the floor and lower shelves at the rear. A person must be fully inside the pantry to be detected, ignoring any motion at the threshold.
Refining the Detection Zone with Lens Masking
For installations that demand surgical precision, lens masking offers another layer of control. A sensor’s lens is a series of Fresnel segments, each focusing infrared light from a specific direction onto the detector. By physically blocking some of these segments, you can blind the sensor to unwanted areas.

A small, carefully cut piece of opaque electrical tape is all you need. Observe which part of the lens is oriented toward the hallway and apply the tape directly to that segment. This physically prevents the sensor from detecting any thermal change in that direction, creating a custom-shaped detection zone that perfectly matches the pantry’s interior.
Adding Intelligence: Fine-Tuning Sensor Settings
With the physical installation dialed in, you can use the sensor’s built-in settings to further refine its behavior. Rayzeek sensors offer adjustable controls that are critical for perfecting a pantry setup.
Looking For Motion-Activated Energy-Saving Solutions?
Contact us for complete PIR motion sensors, motion-activated energy-saving products, motion sensor switches, and Occupancy/Vacancy commercial solutions.
Using Lux Thresholds to Operate Only When Needed
A pantry with glass doors often gets plenty of ambient light. The sensor’s integrated lux detector can prevent the light from activating needlessly. By setting a low lux threshold, you instruct the sensor to trigger only when the pantry is dark. The light will come on at night or on a cloudy day but will conserve energy by staying off when the room is already bright.
Setting an Appropriate Time Delay for Quick Visits
Pantry trips are typically brief—grab an item and leave. A long time delay is unnecessary and wasteful. A short delay of one to five minutes is ideal. This ensures the light stays on while you’re there but turns off promptly after you leave, maximizing both convenience and energy efficiency.




























