from machine import Pin
from machine import Pin, ADC
import utime
vel = ADC(Pin(35))
vel.atten(ADC.ATTN_11DB)
vel.width(ADC.WIDTH_12BIT)
while True:
medicion = float(vel.read())
utime.sleep_ms(400)
velocidadTOT = round(medicion * 300 /4096, 2)
print("el objeto se mueve a ", velocidadTOT, " km/h")