from machine import Pin, ADC
import time
adc = ADC(Pin(34))
adc.width(ADC.WIDTH_10BIT)
adc.atten(ADC.ATTN_11DB)
while True:
pot_value = adc.read()
print("Analog Value:", pot_value)
time.sleep(1)
from machine import Pin, ADC
import time
adc = ADC(Pin(34))
adc.width(ADC.WIDTH_10BIT)
adc.atten(ADC.ATTN_11DB)
while True:
pot_value = adc.read()
print("Analog Value:", pot_value)
time.sleep(1)