how do i wire my sensor to my light
The sensor is wired in-line. That means the wire coming from the source of electrical current is the starting point, the sensor IN wire hook to the same colored wires from the source wires, and the sensor OUT wires hook up to the same colored wires on the light. The sensor is now getting power, and passing it on to the light.
Most sensors have three wires coming out of it. 1. The black wire on the sensor goes to the hot incoming power (usually black) wire. 2. The white wire on the sensor goes to the white common wire along with the white common wire of your light. 3. The red wire on the sensor goes to the other side of the light connection (usually black wire). If you connect all of this during the day, it will turn on for a moment when you first power it up, then the sensor will detect the daytime light, then turn back off and wait for darkness to turn back on. To cap: Line side power (input power) goes to black and white; Load side power goes to red and white.
Normally it is black wire to black wire, white to white and ground (copper) to ground.