from machine import Pin
from machine import Pin, ADC
import utime
presi = ADC(Pin(34))
presi.atten(ADC.ATTN_11DB)
presi.width(ADC.WIDTH_12BIT)
while True:
medicion = float(presi.read())
utime.sleep_ms(400)
presTOT = round(medicion * 60 /4096, 2)
print("se está ejerciendo una presión de ", presTOT, " bar")