 #define CURRENT_MCB_CUT 16
 
 #define TEMP_MAX 85
-#define TEMP_WARNING 70
+#define TEMP_WARN 70
 #define TEMP_WARNING_RATE 120000 //2 x 60 x 1000ms
 
 #define PIN_LED 26


  float temperature = getTemperature();

  if(temperature >= TEMP_MAX){
    return STATE_TEMP_MAX; 
  } else {
    return STATE_WINDOW_BEFORE;  

  if(temperature >= TEMP_MAX){
    nextState = STATE_TEMP_MAX;
  
  } else if(temperature >= TEMP_WARN){
    static unsigned long lastTempAlert = 0;

    unsigned long currentTime = millis();
