I purchased a T8 fluorescent fixture with electronic ballast, which came with a wired three-prong plug. I also, purchased a infrared motion sensor. I want to hardwire the fixture into the motion sensor but as you can see from the diagram, the sensor instruction shows only one wire going to the light fixture. How do I hard wire/splice the two together? I don't mind either removing the plug on the fixture, or using a female plug extension wire connected to the male fixture plug.

Motion sensor


2 Answers 2


Your light fixture has hot, neutral, and ground.

The diagram actually shows the switched hot and neutral connecting to the light - ground is or should be obvious, it's not shown probably to reduce clutter.

As shown on the diagram, you connect the neutral from the wires supplying the location of the sensor to the fixture wire. It does not connect to the sensor at all. As not shown, you do the same thing with the ground. As shown, you connect the switched hot to the fixture.

  • Just so that it’s clear, the ground coming out of the light fixture AND the ground from the sensor (green) will both be connected to the ground line supplying the sensor location?
    – Ron
    Jun 27, 2015 at 16:08
  • @Ron Yes, that is correct.
    – Ecnerwal
    Jun 27, 2015 at 17:46

Your sensor / switch device is designed to be mounted into an electrical box with permanent wiring.

Your light fixture with its attached cord (with three prong plug) is meant to be connected into an outlet that is itself mounted in an electrical box with permanent wiring. The lamp itself, when configured this way could be considered a temporary connection to the electrical system.

So you have two options to consider in order to wire up this setup. The first one involves installing the necessary electrical boxes and permanent house wiring such that the switch/sensor assembly is controlling the On/Off of an outlet near the lamp mounting location. Then plug the three prong cord from the lamp into the switched outlet.

The second approach involves converting the lamp to a permanent wired installation. (Note that not all lamp fixtures are suitable for this but many are). Like before install two electrical boxes for the switch/sensor and one at the site where the light will mount. Connect the boxes with permanent type wiring with the switched end of the wiring terminating at the electrical box at the lamp fixture location. The lamp fixture is modified to remove the three pronged cord assembly and replace that with pigtail wiring that attaches to the switched wires in the electrical box. Normally in this type installation the lamp fixture then mounts over the electrical box becoming its cover. It is also possible in some instances to pass the switched wires through a wire clamp at the fixture interface with the box electrical box such that the wire joining to the fixture wiring occurs inside the fixture itself. Once again suitable for some fixtures but maybe not all.

Which ever approach you use try to avoid installing by other means where you tap temporary wiring into the permanent wiring supply and then kludge together the switch and fixture wiring with it dangling around in an unsafe manner.

  • So, for your first option (installing an outlet), is this the correct sequence? 1. Red output coming out of sensor to the black/hot of the outlet. 2. White/neutral coming out of the outlet to the neutral of the supply line. 3. Ground coming out of the outlet together with ground (green) coming out of the sensor to the ground of the supply line.
    – Ron
    Jun 27, 2015 at 16:07
  • @Ron - Sounds correct.
    – Michael Karas
    Jun 27, 2015 at 16:15
  • Incidentally, the sensor instruction says "To avoid overheating and possible damage to other equipment, do not use to control receptacles." I'm not sure why it says that but, since I'm only going to plug the light fixture into the receptacle outlet, is this a concern?
    – Ron
    Jun 27, 2015 at 16:15
  • It is a specific concern for anyone that would plug in a load into that outlet that exceeded the amperage switching capacity of the switch/sensor unit. One way to avoid problems is to mount the outlet in the ceiling near the fixture and label it "For Lamp Fixture Only". However this is no guarantee that someone in the future would do something unexpected.
    – Michael Karas
    Jun 27, 2015 at 16:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.