# Local control and network upload are separate decisions; this code makes no network request.
temperature = 29
network_available = False
fan = temperature > 28
print("fan", fan)
print("upload", network_available)
# A queue preserves arrival order; a real design also needs a storage limit.
pending = []
pending.append(26)
pending.append(29)
print(pending[0], len(pending))