import network
import time
import urequests
from random import randint
print("Connecting to WiFi", end="")
sta_if = network.WLAN(network.STA_IF)
sta_if.active(True)
sta_if.connect('Wokwi-GUEST', '')
while not sta_if.isconnected():
print(".", end="")
time.sleep(0.1)
print(" Connected!")
while True:
rnd = randint(-30,30)
klic = urequests.get("https://willingtepidoctal.lukacolaric.repl.co/senzor/"+str(rnd))
print(klic.text)