#from HCSR04 import hcsr04
import machine
from machine import Pin
from time import sleep
Echo = Pin(33,Pin.IN)
trig = Pin(25,Pin.OUT)
while True:
trig.value(0)
sleep(1)
trig.value(1)
sleep(1)
trig.value(0)
x= machine.time_pulse_us(Echo,1)
d= (0.0343 * x)/2
print("distance :",d ,'cm')
sleep(1)
#while True:
# distance = sensor.distance_cm()
# print("Distance : ", distance,'cm')
# sleep(1)