Daylight detector