import sr04 as sr from utime import sleep while 1: distance=sr.get_distance() print(distance) sleep(0.3)