print("Hello, ESP32!")
#####################################
###### IMPORT LIBRARIES
from machine import Pin
from machine import ADC
from utime import sleep
#####################################
###### PIN CONFIGURATIONS
# Configure the pin as input
# Replace the x with your GPIO Pin X number here
pot_pin = ADC(Pin(4))
#####################################
###### MAIN ROUTINE
def main():
while True:
# Read the state of the push button
pot_value = pot_pin.read()
# If PB1 is pushed
print(pot_value)
sleep(0.1)
# continue loop
#####################################
###### EXECUTE MAIN ROUTINE
if __name__ == '__main__':
main()