   return temperatureC;
 }
 
+void shortBeepXTimes(int times){
+  for(int i = 0; i < times; i++){
+    digitalWrite(PIN_BUZZER, HIGH);
+    delay(BUZZER_BEEP_ON_TIME);
+    digitalWrite(PIN_BUZZER, LOW);
+    delay(BUZZER_BEEP_OFF_TIME);
+  }
+  
+}
+
+void longBeep(){
+  digitalWrite(PIN_BUZZER, HIGH);
+  delay(BUZZER_LONG_BEEP_TIME);
+  digitalWrite(PIN_BUZZER, LOW);
+}
+

void loop() {

  double currentValue = getCurrentMeasurement();

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

    mcbTrippedCurrent = currentValue;
    Serial.print("MCB tripped at: ");
    Serial.println(mcbTrippedCurrent);
    longBeep();

  }

  int buttonPressed = digitalRead(PIN_BUTTON_ENTER);
