Sunlight sensor