Introduction - If you have any usage issues, please Google them yourself
Based STC15w202s microcontroller Ultrasonic Ranging, digital display the program. Add two buttons, press enter to adjust the threshold, when the distance above or below the threshold value, the corresponding output pin high.