MTX-M2s microwave ranging sensor is a human body detection sensor mainly used for automatic control of toilet. The frequency modulated continuous wave (FMCW) technology is adopted. Compared with the Doppler microwave sensor, it has the advantages of higher ranging accuracy, better ability to capture human micromotion signal and strong adaptability. It can instantly detect the distance and motion state of the surrounding human body relative to the toilet, and send the corresponding signal to the main control device of the toilet according to the detection result. After receiving the signal, the main control device can control the toilet to realize the automatic opening and closing of the cover or flushing