Mode:
Duration:
1
2
3
4
5
6
7
8
9
import random
def readTemp():
return random.randint(20,35) # Simulated sensor
temp = readTemp()
print(f"Temperature: {temp}")
if temp > 30:
print("Warning: High Temperature!")Coding works best on desktop or with an external keyboard.