Maybe...
The moon/bad weather could be solved by adjusting the sensitivity. I will assume you are using an ADC for this. Have the sensor shaded from the moon directly. Adjust so moon light appears as clouds or bad weather.
The car lights ... Maybe a counter. The light would have to hit the sensor for a predetermined time (count) before it is activated.
Bookmarks