Turn off the power to the circuit you are working on at the breaker box.
Mount the light sensor by threading it into a mounting plate. Mounting plates are available at local hardware stores. The mounting plates are threaded and ready for mounting one to three devices.
Attach the light fixture or fixtures (often flood lights) to the mounting plate. You now have the complete lighting unit assembled.
Connect the wires on the lighting fixture to the wires from the electrical box. Start with the green wires. A green wire will connect either to a green screw or to a green wire from the box, using a green wire connector. This is an essential safety step to connect to ground.
Connect all the white wires together and secure with a wire nut. These are the "common" or neutral wires.
Connect one of the colored wires from the light sensor (usually black or red) to the colored wires from the light or lights.This will provide power from the light sensor to the flood lights when the light sensor activates.
Connect the remaining colored wire from the light sensor to the colored wire from the electrical box. This will provide power to the light sensor.
Attach the lighting unit to the electrical box using the hardware provided with the mounting plate.