Ultrasonic range finder simple code

@Hypnopompia had a project with a sensor like this
Distance sensor for an adjustable height desk?