INdeed..see what it gives...
...and if no success, then if you can pull the sensor from its place , disconnect it from the socket, and insert a wire (or, more elegant, a 1000 ohm resistor) from one pin to the other in the socket. THis will SIMULATE DAYLIGHT...AND THE headlights should extint.