import network
import urequests
import machine
from machine import Pin,ADC
from time import sleep
led1=Pin(2,Pin.OUT)
#connecting the controller with internet
print("connecting to internet")
sta=network.WLAN(network.STA_IF)
sta.active(True)
sta.connect('Wokwi-GUEST','')
while not sta.isconnected():
pass
print("connected")
adc=ADC(Pin(35))
def read-blynk
token="rF9fZAzC4Duo7-1qIlrGPUs8iPWL3eL5"
while True:
a=adc.read()
print(a)
val=urequests.get("https://blr1.blynk.cloud/external/api/update?token={}&V0={}".format(token,a))
sleep(2)