print("Hello, ESP32!")
from machine import Pin, ADC #importing Pin and ADC class
from time import sleep #importing sleep class
potentiometer = ADC(Pin(32)) #creating potentiometer object
potentiometer.atten(ADC.ATTN_11DB) #3.3V full range of voltage
while True:
potentiometer_value = potentiometer.read() #reading analog pin
print(potentiometer_value) #printing the ADC value
sleep(0.25)