"""1.1 decision-logic exercise: simulated readings, no physical I/O.
Runs in CircuitPython's console or standard Python.
"""
threshold_c = 30.0
readings_c = (29.9, 30.0, 30.1, 29.8)

for temperature_c in readings_c:
    if temperature_c >= threshold_c:
        fan_command = "ON"
    else:
        fan_command = "OFF"
    print("T={:.1f} C | Fan command: {}".format(
        temperature_c, fan_command))
