 #define BACKLIGHT_BLINK_RATE 200
 
 typedef enum {
-  STATE_MCB_TRIPPED, STATE_WINDOW_BEFORE, STATE_WINDOW_WITHIN, STATE_WINDOW_EXITED
+  STATE_MCB_TRIPPED, STATE_WINDOW_BEFORE, STATE_WINDOW_WITHIN, STATE_WINDOW_EXITED, STATE_TEMP_MAX
 } STATE;
 
 //This is to prepare to transition to the STATE_WINDOW_BEFORE at the start

          beepCurrentlyOn = true;
      }
    }
    
  }
  
  
}


void temperatureWarningCheck(float temperature){
  if(temperature > TEMP_WARNING){
    static unsigned long lastTempAlert = 0;

    unsigned long currentTime = millis();

#define CURRENT_ENABLE_THRESHOLD 0.23
#define CURRENT_MCB_CUT 16

#define TEMP_MAX 85
#define TEMP_WARNING 70
#define TEMP_WARNING_RATE 120000 //2 x 60 x 1000ms

