The electric eye should have a black and a red wire which the black connects to the black wire from the power source and the red to the black to the black from the light. Now some wont have two different colors which then one black to power source and the other black to black from the light. If yours has any other wires like a white then just color code them to the appropriate wire