Useful tip #103 for electricians. Keep a black bin bag in your van. Perfect to cover such sensor so it thinks it is dark and all the outside lights should come on and you can go and check them.
If you need to replace one, they unplug like a bayonet fitting so no witing needed just unplug the old one, plug in the new one.