Black is power. This is supply power, always on.
White is neutral, connect it to other neutrals.
Red is the switch lead, this will connect to the device you want to control.
The device usually has a white & a black or colored wire.
The white is connected to the white of the photo cell … Read more