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
temp_pin = ADC(Pin(34))
############################
##### MAIN ROUTINE #####
def main():
while True:
# Read the state of the push button
temp_value = temp_pin.read()
# If PB1 is pushed
print(temp_value)
sleep(0.1)
# continue loop
############################
##### EXECUTE MAIN ROUTINE #####
if __name__ == "__main__":
main()