sun detection