from machine import Pin,ADC
from time import sleep
import urequests
import network
import machine
sta_if = network.WLAN(network.STA_IF)
print('connecting to network...')
sta_if.active(True)
sta_if.connect('Wokwi-GUEST', '')
while not sta_if.isconnected():
pass
print('network config:', sta_if.ifconfig())
adc=ADC(Pin(35))
token="wYFpRAzXsRqPt3mmOz8b1AS3WWt447oV"
while True:
a=adc.read()
print(a)
val=urequests.get("https://blr1.blynk.cloud/external/api/update?token={}&V0={}".format(token,a))
sleep(2)