based on detection of the illumination level