Daylight sensor