import sr04 
from utime import sleep

while 1:
    dist=sr04.get_distance()
    if dist>0:
        print(dist,"cm")
    else:
        print("invalid distance")
    sleep(0.3)
BOOTSELLED1239USBRaspberryPiPico©2020RP2-8020/21P64M15.00TTT