Optical sensors utilize optical phenomena and principles such as light propagation, reflection, refraction, absorption, scattering, interference, and diffraction. They convert the change of the measured quantity into a change of the optical signal. Then, through a photoelectric conversion element, the optical signal is converted into an electrical signal, thus realizing the detection and measurement of the measured quantity. For example, in some optical sensors for distance measurement, the light emitted by the transmitting light source irradiates the target object and then reflects back. The sensor calculates the distance between the target object and the sensor according to information such as the round - trip time of the light or the intensity of the reflected light.