Sunlight detector