Light sensor is applied to detect the light