The invention relates to the technical field of lamp switches, and particularly relates to a lamp switch chip. The lamp switch chip comprises a microprocessor, a digital signal processing module, an image sensor, an analog-to-digital conversion module, an infrared sensor, a power input serial pot and a signal output serial port, wherein the microprocessor is internally equipped with a clock circuit, a power end of the microprocessor, a power end of the digital signal processing module, a power end of the image sensor and a power end of the infrared sensor are electrically connected with the power input serial port, the microprocessor is in communication connection with the digital signal processing module, the image sensor is electrically connected with the digital signal processing modulethrough the analog-to-digital conversion module, the image sensor is electrically connected with an output end of the microprocessor, the infrared sensor is electrically connected with an input end of the microprocessor, and the signal output serial port is electrically connected with the output end of the microprocessor. The lamp switch chip control a lamp to be turned on or turned off through identifying a moving object, and has the advantages of long identification distance, wide identification range and high identification accuracy.