Photosensitive resistor module is extremely sensitive to ambient light, when the module in the ambient light brightness can not reach the set value of the program", the DO output will output a high level, when the ambient light brightness exceeds the original programmed value, DOThe output port will output a low level;The DO output terminal is directly connected with the STM32 MCU interface, and can be checked by MCUMeasure the output of high and low levels. The output of high and low levels is different in height, so as to check the brightness of light in the environmentThe different;The DO output can drive the relay directly, thus forming a simple switch controlled by light.In order to collect and read the ambient light intensity more accurate value.The analog output of the photosensitive resistance induction module can be connected with the AO end of the AD module through the conversion of the AD module