while True:
    sensor.sea_level_pressure = sensor.pressure
    hello_label_outline1.text = f"{hello_text}"
    hello_label_outline2.text = f"{hello_text}"
    hello_label_outline3.text = f"{hello_text}"
    hello_label_outline4.text = f"{hello_text}"
    hello_label.text = f"{hello_text}"
    print("===============================")
    debug_OWM = False  # Set to True for Serial Print Debugging

    # Local sensor data display
    temp_label.text = "°F"

    # Board Uptime
    print("Board Uptime: ", time_calc(time.monotonic()))

    # Account for PCB heating bias, gets slightly hotter as ambient increases
    temperature = sensor.temperature * 1.8 + 32
    temp_round = round(temperature, 2)
    print("Sensor Temp: ", temperature)  # biased reading
    display_temperature = np.interp(temperature, input_range, output_range)
    display_temperature = round(display_temperature[0], 2)
    print(f"Adjusted Temp: {display_temperature:.1f}")
    #mqtt_pressure = 1009  # Manually set to debug warning message
    mqtt_humidity = round(sensor.relative_humidity, 1)
    mqtt_pressure = round(sensor.pressure, 1)
    mqtt_altitude = round(sensor.altitude, 2)

    temp_data_shadow.text = f"{display_temperature:.1f}"
    temp_data_label.text = f"{display_temperature:.1f}"
    humidity_outline1.text = f"{humidity_text}"
    humidity_outline2.text = f"{humidity_text}"
    humidity_outline3.text = f"{humidity_text}"
    humidity_outline4.text = f"{humidity_text}"
    humidity_label.text = f"{humidity_text}"
    humidity_shadow.text = f"{mqtt_humidity:.1f} %"
    humidity_data_label.text = f"{mqtt_humidity:.1f} %"
    barometric_label_shadow.text = f"{pressure_text}"
    barometric_label.text = f"{pressure_text}"
    barometric_shadow.text = f"{mqtt_pressure:.1f}"
    barometric_data_label.text = f"{mqtt_pressure:.1f}"

    # Warnings based on local sensors
    if mqtt_pressure <= 919:  # pray you never see this message
        show_warning("HOLY COW: SEEK SHELTER!")
    elif 920 <= mqtt_pressure <= 979:
        show_warning("DANGER: MAJOR HURRICANE!")
    elif 980 <= mqtt_pressure <= 989:
        show_warning("DANGER: MINOR HURRICANE")
    elif 990 <= mqtt_pressure <= 1001:
        show_warning("WARNING: TROPICAL STORM")
    elif 1002 <= mqtt_pressure <= 1009:  # sudden gusty downpours
        show_warning("CAUTION: LOW PRESSURE SYSTEM")
    elif 1019 <= mqtt_pressure <= 1025:  # sudden light cold rain
        show_warning("CAUTION: HIGH PRESSURE SYSTEM")
    elif mqtt_pressure >= 1026:
        show_warning("WARNING: HAIL & TORNADO WATCH")
    else:
        hide_warning()  # Normal pressures: 1110-1018 (no message)

    print("Next Update: ", time_calc(sleep_time))
    print("===============================")
    display.refresh(target_frames_per_second=10, minimum_frames_per_second=0)
    time.sleep(sleep_time)