1998 - Headlight Problem

#1
So I have a 1998 Toyota corolla and one day heading back home from school my headlights shut off. Now during the day they are on and working but when the night sensor(that turns the dash lights on) turns on when it gets dark the lights shut off and It won't turn on no matter what. Even the brights wont turn on. Once it is day again, there is no problem turning the lights or the brights on, they work! so i think it has something to do with that sensor...any suggestions?
 
Top