What You Need Before You Start

Wiring a motion sensor light means connecting three wires from your existing light circuit to the sensor unit, then connecting the sensor to the light fixture itself. The job takes about 30 minutes if you already have a light in place, or an hour if you're installing a new fixture. You'll need a screwdriver, wire strippers, and wire nuts (the plastic connectors that twist onto bare wires). Turn off power at the breaker before you touch anything.

Motion sensor lights come in two main types: retrofit sensors that replace your existing wall switch, and fixture-mounted sensors that screw into the light socket or attach to the fixture itself. Retrofit sensors are simpler if you have an existing light and switch. Fixture-mounted sensors work better if you're installing a new light or don't have a convenient switch location.

Before you buy, check whether your light fixture is dimmable or uses LED bulbs. Some motion sensors don't work with dimmers or certain LED types — the product packaging will say "dimmable" or "LED compatible" if it does. If your light is controlled by a dimmer, you need a sensor rated for that.

Key Takeaways

  • Turn off power at the breaker and test the switch with a voltage tester to confirm the power is off before touching any wires.
  • A retrofit sensor replaces your existing wall switch and connects to the same three wires (hot, neutral, ground) that the old switch used.
  • Wire nuts twist onto bare wire ends to join them — twist the wires together first, then screw the nut on until it's snug and won't turn by hand.
  • After wiring, test the sensor by walking in front of it; most sensors have a sensitivity dial and a time delay dial you adjust after installation.

Turning Off Power and Testing

Go to your breaker panel and flip the switch that controls the light you're working on. The breaker label should tell you which one, but if you're not sure, turn off the light at the switch, then flip breakers one at a time until the light goes dark. Flip that breaker all the way off.

Go back to the light switch and flip it up and down a few times to make sure nothing happens. Then use a voltage tester — a small battery-powered device you can buy for $10 to $20 at any hardware store — to touch the wires inside the switch box. If the tester beeps or lights up, power is still on. Do not proceed. If it stays silent and dark, power is off and you can safely remove the old switch.

Removing the Old Switch and Identifying the Wires

Unscrew the cover plate and remove the two screws holding the switch to the box. Pull the switch out gently. You'll see three wires attached to the back: one black wire (hot, carrying power), one white wire (neutral, completing the circuit), and one bare copper or green wire (ground, for safety). Write down which terminal each wire is attached to — most switches have them labeled COM (common), or L1 and L2.

Loosen the terminal screws and pull the wires free. If the wires are damaged or the insulation is cracked, trim off the damaged part with wire strippers and strip about half an inch of fresh insulation from the end. If the wires look fine, you can reuse them as-is.

Connecting Wires to the Motion Sensor

Your motion sensor will have three wire leads coming out of it, usually labeled HOT (black), NEUTRAL (white), and GROUND (green or bare copper). Match each lead to the wire that came from the switch: black to black, white to white, copper to copper. If your old switch had the wires on different terminals, the motion sensor instructions will show you which terminal each color goes to — follow the instructions, not the old switch.

Twist the black wire from the wall and the black lead from the sensor together by hand, turning clockwise until they're wrapped around each other two or three times. Screw a wire nut onto the twisted wires, turning it clockwise until it's snug — you should not be able to untwist the wires by hand. Repeat for the white wires and the ground wire. Gently push all three wire nuts back into the switch box.

Screw the motion sensor to the switch box using the two screws that came with it. The sensor body should sit flush against the wall. Do not force it — if it doesn't fit, check that all wires are pushed fully into the box and that no insulation is bunched up.

Adjusting Sensitivity and Time Delay

Turn the breaker back on. The motion sensor should have power now. Most sensors have two dials on the front or back: one for sensitivity (how close you need to be for the sensor to detect motion) and one for time delay (how long the light stays on after motion stops). Start with both dials in the middle position.

Walk in front of the sensor from different distances and angles. If the light turns on too easily or too often, turn the sensitivity dial down. If you have to be very close for it to work, turn it up. Adjust the time delay so the light stays on long enough for you to cross the room — usually 30 seconds to 5 minutes depending on the space. Most sensors let you adjust these without turning off power.

Installing a Fixture-Mounted Sensor Instead

If you don't have an existing switch or prefer a sensor built into the fixture, you can use a fixture-mounted sensor that screws into the light socket or clips to the fixture. These are simpler because they don't require rewiring the switch box — you just screw the sensor into the socket where the bulb goes, then screw the bulb into the sensor.

Turn off power at the breaker, remove the old bulb, and screw the sensor into the socket. Screw your bulb into the sensor. Turn power back on and adjust the sensitivity and time delay dials. These sensors work well for outdoor lights, garage lights, or any fixture where you don't need a wall switch.

Troubleshooting Common Problems

If the light doesn't turn on at all, turn off the breaker and check that all three wire nuts are tight and that no bare wire is showing. If a wire nut is loose, unscrew it, twist the wires tighter, and screw the nut back on. If the light still doesn't work, use the voltage tester to confirm power is reaching the sensor — touch the tester to the black and white wires inside the switch box with the breaker on. If the tester doesn't light up, the breaker may be off or the circuit may be damaged.

If the light turns on but won't turn off, or turns on randomly, the sensitivity dial is probably too high. Turn it down and test again. If the light turns on and off too quickly, increase the time delay. If the sensor works during the day but not at night, check whether it has a daylight sensor — some models don't activate in bright sunlight. This is normal and usually can't be changed.

Frequently Asked Questions

Do I need a special bulb for a motion sensor light?

No, but check the sensor packaging to see if it's compatible with LED bulbs and dimmers. Most modern motion sensors work with standard LED bulbs, but older sensors or very cheap ones may not. The packaging will say "LED compatible" if it works with LEDs.

Can I use a motion sensor on a light that's controlled by a dimmer?

Only if the sensor is rated for dimmers — the packaging will say "dimmable" or "dimmer compatible." If you use a non-dimmable sensor on a dimmer circuit, the light may flicker or not work at all. If your switch is a dimmer, buy a sensor specifically marked for dimmer use.

What if my switch box only has two wires instead of three?

Older homes sometimes have switch boxes with only a hot wire and a neutral wire, with no ground wire. Most modern motion sensors need all three. If your box has only two wires, you may need to hire an electrician to add a ground wire, or use a fixture-mounted sensor instead, which sometimes works without a ground.

How do I know if the motion sensor is working if the light is already on?

Turn off the light at the sensor's time delay dial — set it to the shortest time (usually 30 seconds). Wait for the light to turn off, then walk in front of the sensor. If the light turns back on, the sensor is working. If nothing happens, check that the breaker is on and that all wire connections are tight.

Can I install a motion sensor on an outdoor light?

Yes, but buy a sensor rated for outdoor use — the packaging will say "outdoor" or "weatherproof." Outdoor sensors have sealed wire connections and housing to handle rain and temperature changes. Indoor sensors will fail quickly if exposed to weather.