The invention mainly uses a thermal sensor to detect whether there are still people in the space, and uses a servo motor to control the power switch, and it does not need to touch the power cord during installation. The danger is low, and the automatic switch only needs to be fixed on the traditional power switch. This application can effectively control the use of lighting equipment power and improve the convenience of life.