from machine import Pin,ADC,PWM

buzzer=PWM(Pin(14))

buzzer.duty(512)

pot=ADC(Pin(34))

ADC.width(ADC.WIDTH_12BIT)

while 1:
  value=pot.read()