import machine
# Initialize the ADC (Analog to Digital Converter)
adc = machine.ADC(machine.Pin(34)) # Use ADC1 channel 6 on ESP32
print(adc.read())
# Initialize the LED on GPIO pin 18 (you can change this to any other available pin)
import machine
# Initialize the ADC (Analog to Digital Converter)
adc = machine.ADC(machine.Pin(34)) # Use ADC1 channel 6 on ESP32
print(adc.read())
# Initialize the LED on GPIO pin 18 (you can change this to any other available pin)