Error in Final project code


Currently I have set the minimum and maximum temperature values as 30 and 45 respectively.
I am getting an error in the code!!
Also I would like to clear my doubt that how will the temperature sensor detect and print that fridge door opened!!?


A temperature sensor can not detect if the door is open. But it can detect the changes in temperature.

Also, send us your code for debugging the issue. I will suggest you add the print statement before doing json.loads().