 
    
        u8g2.sendBuffer();
+
+       temperatureWarningCheck(temperature);
     }
   }
   


#define CURRENT_ENABLE_THRESHOLD 0.23
#define CURRENT_MCB_CUT 16

#define PIN_LED 26
#define PIN_CT A0

  
}


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

    unsigned long currentTime = millis();

    if((currentTime - lastTempAlert) > TEMP_WARNING_RATE){
      lastTempAlert = currentTime;
      shortBeepXTimesNoDelay(5); 
    }
    
  }
}

