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

void loop() {

  double currentValue = getCurrentMeasurement();
  
  if(currentValue >= CURRENT_MCB_CUT){
    nextState = enterMCBTrippedMode(currentValue);
  }

    digitalWrite(PIN_BUZZER, HIGH);
  }

  //This is to sound the buzzer and blink the Backlight for BACKLIGHT_BLINK_RATE duration
  if(initialWarningTriggered){

    static bool displayBacklightCurrentlyOn = false;
