Garden & Home Reviews is reader-supported. We earn affiliate commissions from qualifying purchases — how this works.

How to Install a Motion Sensor Light

Home/Resources/Indoor Lighting/Install a Motion Sensor Light
Overhead view of a person switching, in warm late-afternoon light

Affiliate Disclosure

Some links on this page are affiliate links. As an Amazon Associate, we earn from qualifying purchases — at no extra cost to you. We do not buy, test, or physically handle the products we cover; our rankings come from aggregated owner reviews, ratings and expert consensus. Commissions never change our verdicts. How we rank · full disclosure.

Installing a motion sensor light switch is a beginner electrical job — plan on 15 to 25 minutes, $15 to $40 for the switch, and no permit. You replace a standard wall switch with the sensor and set its timer and sensitivity. Cut the breaker and verify the wires are dead first. The one thing to check before buying: whether your box has a neutral wire, since many sensor switches need one — pick a no-neutral model if it does not. Anything at the service panel is a licensed electrician's job.

We never buy, test or physically handle the products we rank; recommendations come from aggregated owner reviews and expert consensus, described in how we rank. More at the indoor lighting hub.

How To Install a Motion Sensor Light Switch

Tools and materials

Low-angle view of a person switching, in warm late-afternoon light

Step 1: Check the box for a neutral

Before buying, take off the cover plate and look for a bundle of capped white neutral wires at the back of the box. A neutral-required sensor switch is the most reliable if you have one; if the box has only the switched hots and a ground, buy a no-neutral model. Note whether the circuit is single-pole (two hots) or three-way (three hots) so you buy the matching switch.

Step 2: Cut the power and verify dead

Switch off the breaker for the circuit and confirm the wires are dead with the voltage tester before you touch them. As with any switch, the wall switch alone does not guarantee a de-energized box.

Wide environmental view of a person switching, in soft overcast light

Step 3: Remove the old switch

Unscrew the old switch and pull it forward. Note which wire is line (incoming hot) and which is load (to the fixture) if the box makes it clear, and tag the neutral bundle. On many single-pole boxes the two hots are interchangeable, but the sensor switch's instructions will specify line, load, neutral, and ground leads.

Step 4: Connect the sensor switch

Match the switch's leads to the house wires per its diagram: line to incoming hot, load to the fixture wire, neutral to the white bundle (if required), and the green lead to the ground. Strip nicked ends to clean copper first. Twist each pair clockwise and cap firmly with a wire nut; tug to confirm. Fold the wires neatly back into the box — sensor switches are deeper than plain ones and need the room.

Golden-hour view of a person switching

Step 5: Mount, set, and test

Screw the switch to the box, add the cover plate, and restore power. Set the mode (occupancy for auto-on, vacancy for manual-on/auto-off), the time delay, and the sensitivity or light threshold using the dials behind the faceplate. Walk through the detection zone to confirm it triggers, and let it time out to confirm it shuts off. Adjust sensitivity down if it false-triggers.

Common mistakes

When to call an electrician

Bring in a licensed electrician if the box has no ground, if you find aluminum wiring, if the wiring does not match a pattern you recognize, or if any work reaches the panel — permit-and-pro territory, jurisdiction-specific, never DIY at the service panel. Replacing a switch on sound existing wiring is a homeowner job.

Related reading: how to install a dimmer switch, how to install a smart light switch, and how to replace a light switch.

Straight Answers

Frequently Asked

Does a motion sensor light switch need a neutral wire?

Many do. The sensor electronics draw a small constant current, and a neutral wire gives them a clean return path. Some models work without a neutral by trickling current through the load, which can make certain LED bulbs glow faintly when off. If your box has a neutral (a bundle of capped white wires), buy a neutral-required switch for the most reliable operation; if not, choose one explicitly rated for no-neutral installations.

What is the difference between occupancy and vacancy sensors?

An occupancy sensor turns the light on automatically when it detects motion and off after a set delay — hands-free both ways, ideal for a garage, laundry, or hallway. A vacancy sensor requires you to turn the light on manually but shuts it off automatically when the room empties — better for energy savings and for rooms where you do not want the light snapping on every time. Many switches let you choose either mode.

Why does my motion sensor light keep turning on by itself?

False triggers usually come from heat sources or airflow. A PIR (passive infrared) sensor reacts to moving heat, so a nearby HVAC vent, a sunny window, a heater, or even a pet can set it off. Lower the sensitivity setting, aim the sensor away from vents and windows, and shorten nothing about the detection zone that faces a heat source. Reducing sensitivity fixes the large majority of nuisance activations.

Can I put a motion sensor on any light?

On most switched lights, yes — you replace the wall switch controlling that light. The bulbs must be compatible: for LED or CFL bulbs, choose a sensor switch rated for those loads, since sensors built only for incandescent loads can flicker or fail with low-wattage LEDs. You cannot simply add a sensor to a fixture with no wall switch, and three-way circuits need a sensor switch designed for three-way use.

How do I set the timer on a motion sensor switch?

Most switches have small dials or dip switches behind the faceplate for time delay (how long the light stays on after the last motion, often 15 seconds to 30 minutes) and sensitivity or ambient-light threshold (so it only activates in the dark). Start with a moderate delay like 5 minutes for a hallway or 15 for a room you sit in, then adjust. Set the light-level threshold so it ignores motion during bright daylight if the model supports it.