from machine import Pin
from machine import Pin, ADC
import utime
ph = ADC(Pin(35))
ph.atten(ADC.ATTN_11DB)
ph.width(ADC.WIDTH_12BIT)
while True:
medicion = float(ph.read())
utime.sleep_ms(400)
phTOT = round(medicion * 14 /4096, 2)
print("el objeto tiene una PH de ", phTOT, " grados de acidez")