from machine import Pin
from utime import sleep
from Hcsr04 import HCSR04
ledr = Pin(15.Pin.OUT)
ledv = Pin(21.Pin.OUT)
while True:
d = sensor.distance_cm()
ledr.on()
print(d)
sleep(3)
print("aissa")from machine import Pin
from utime import sleep
from Hcsr04 import HCSR04
ledr = Pin(15.Pin.OUT)
ledv = Pin(21.Pin.OUT)
while True:
d = sensor.distance_cm()
ledr.on()
print(d)
sleep(3)
print("aissa")