A motion sensor wall switch replaces a standard light switch with a unit that contains a small passive infrared (PIR) sensor behind a lens. The sensor does not see you in the way a camera does; it detects changes in heat moving across its field of view, which is how it distinguishes a person walking in from the background warmth of the room. When it detects motion, a built-in relay closes and power flows to the light, just as if you had flipped a switch. When the room stays still for longer than the time delay you set, the relay opens and the light goes off.
There are two operating styles you need to know before buying. An occupancy sensor turns the light on automatically and off automatically, which is what most people want for hallways, laundry rooms, pantries, closets and garages. A vacancy sensor only turns the light off automatically; you still turn it on manually with a press. Vacancy mode is the smarter choice for bedrooms, kids' rooms and any space with pets, because a cat roaming at night will not keep waking you with full lighting.
Most residential models cover about 180 degrees and up to 900 square feet from a single wall location, which is plenty for the small-to-medium rooms where these switches shine. Many also include ambient light detection, so they will not bother turning on the lights when the room is already bright with daylight. That single feature does a surprising amount of work toward lower electricity bills, because the lights only ever burn when a person is present and the room is actually dark.
Here is the detail that trips up most first-time buyers: many modern sensor switches require a neutral wire to operate, and older switch boxes do not always have one. Before you buy anything, turn off the breaker for that circuit, pull the existing switch out of the wall and look at the bundle of wires. A white neutral wire tucked into the back of the box is the sign you are in good shape. If there is no neutral, you need a model designed to work without one, such as the Lutron Maestro or the Leviton DOS02, both of which are designed to draw their tiny standby current through the ground connection instead.
Match the switch to the load it will control. Residential models are typically rated for 2 amps, which covers roughly 150 watts of LED or CFL lighting and 250 watts of incandescent or halogen. That is more than enough for a room with a few fixtures, but do not put a 2-amp sensor on a bank of high-bay shop lights or a bathroom fan plus heater combo without checking the nameplate ratings first. Exceeding the rating is how you get flickering, buzzing or a cooked switch.
Finally, check whether the switch you are replacing is a single-pole switch (one switch controls the light) or part of a three-way setup (two switches control the same light, like a hallway or stairwell). Most sensor switches are single-pole, and installing one in a three-way circuit usually means it replaces only the switch on the line side, with the traveler wire capped and the other switch left in place. Some models, like the Leviton DOS05, explicitly support three-way configurations. If your hallway has two switches, buy the model that matches the setup rather than forcing a single-pole unit to do a job it was not designed for.
You do not need an electrician's toolbag for this job. The real list is short: a flathead and Phillips screwdriver, wire strippers, a non-contact voltage tester, wire nuts (most switches ship with them) and the sensor switch itself, plus its wall plate if one is not included. The non-contact voltage tester is the one tool you must not skip. It is the difference between knowing the circuit is dead and merely hoping it is, and it costs less than a pizza.
The safety line for this project is clear. Turn off the breaker that feeds the switch, not just the switch itself, and then test every wire in the box with your voltage tester before your fingers go near them. Take a phone photo of the existing wiring before you disconnect anything, so you have a reference if you lose track. Use only copper-rated devices with copper wiring, keep your connections tight inside the wire nuts, and never stuff bare conductors so close together that they can touch behind the switch.
Call a licensed electrician instead of proceeding if any of these show up: aluminum wiring in the box, a scorched or melted wire nut, a box so crowded the switch will not seat without force, or any wiring layout that does not match what your switch's manual describes. A sensor switch costs twenty dollars; burning down a laundry room costs rather more. When in doubt, paying for an hour of a pro's time is the smart part of the DIY.
With the breaker off and every wire tested dead, start by removing the cover plate and the mounting screws of the old switch, then pull the switch gently out of the box and disconnect its wires. Identify what you have: the black wires are line (power in) and load (power out to the light), the white bundle in the back is neutral if present, and the bare copper or green wire is ground. If your sensor model needs a neutral and you have one, this is where you confirm it.
Now wire the sensor according to its manual, which you should actually read, because lead colors vary slightly between brands. The general pattern is universal though: the sensor's green lead goes to the bare ground wire in the box, the sensor's white lead (if it has one) joins the white neutral bundle, the sensor's black lead connects to the line (hot) wire, and the sensor's red lead (sometimes a second black lead) connects to the load wire going to the light fixture. Twist each pair of conductors together clockwise, cap them with a properly sized wire nut, and give each nut a firm tug to make sure nothing pulls free. On no-neutral models, the wiring is the same minus the neutral connection; the device grounds through the box instead.
Fold the wires carefully back into the box so no bare metal is exposed and nothing pinches, then seat the switch and drive the mounting screws until it is snug and level. Attach the wall plate, flip the breaker back on, and stand clear. Most sensors run a short warm-up of thirty seconds to a minute, during which the light may cycle once or twice. That is normal. After warm-up, walk across the room; the light should fire within a second or two. If it does not, kill the breaker again and recheck your connections, starting with whether line and load got mixed up.
Out-of-the-box settings are usually wrong for your room, so treat tuning as part of the installation. The two adjustments that matter most are the time delay (how long the light stays on after motion stops) and the sensitivity (how large a movement it takes to trigger). A pantry or closet works well with a one-to-five minute delay, while a laundry room where you stand still sorting clothes wants ten to fifteen minutes and higher sensitivity, so small movements keep the light alive. Start with the factory defaults, live with them for a few days, then dial in.
The ambient light sensor deserves attention too. Most switches let you set the daylight threshold so the sensor ignores motion when the room is already bright. If your garage lights keep firing at noon, the threshold is set too dark; nudge it toward the brighter end until the switch stays quiet in daylight. Positioning matters as well: the PIR lens needs a clear view of the room, so do not bury it behind a door swing or aim it at a heat vent, a fireplace or a window where passing cars and blowing curtains create false triggers.
The most common complaint with sensor switches is LED flicker or buzzing, and it is almost always a load-compatibility issue. Cheap dimmer-style sensors that leak a tiny current for standby power can make LEDs glow faintly when off; switching to a relay-based sensor like the Lutron Maestro, which makes a true mechanical click, fixes it completely. Also check that your bulbs are on the switch manufacturer's compatible list, because non-listed LEDs are the leading cause of mysterious behavior. With the right switch, the right bulbs and ten minutes of tuning, a motion sensor switch becomes one of those upgrades you forget is even there, until you visit someone else's house and fumble for a switch in a dark hallway.
Hand-picked gear that matches this guide — buying through these links supports the site at no extra cost to you.
As an Amazon Associate we earn from qualifying purchases.