API LIMIT reached message when use temperature sensor project

When I try to run a temperature sense project, I would get an error of the API limit reached. What should I modify

What should I modify in my code to rectify this problem?

You have given time.sleep(10) inside except block.
Click backspace before time.sleep(10) to remove one indentation tab and place it in the while loop instead of in the except block like given in the image.

1 Like

thanks, @dhruvakrishnamaraju its work…
I used this code because it is the same mentioned in Boltiot’s theory. W

Even when you call the API for more than 20 times in a minute it will block as
basic plan doesn’t support more than 20 request per minute
therefore be careful while giving commands like blinking of LEDs and Buzzers several times.