       // If you just came here from cooling state
       // Trigger grace period or cooldown period
       if (beenCooling) {
-	if (inCooldownPeriod) {
-	  // Nothing all set in previous loop
-	}
-	else {
-	  gracePeriodStart = currentMillis;
-	  inGracePeriod = HIGH;
-	}
-	maxStarterMeasurement = 0;
+    	if (inCooldownPeriod) {
+    	  // Nothing all set in previous loop
+    	}
+    	else {
+    	  gracePeriodStart = currentMillis;
+    	  inGracePeriod = HIGH;
+    	}
       }
       digitalWrite(compressorPin, LOW);
       beenCooling = LOW;

#include <avr/pgmspace.h>

// Pin layout
const byte compressorPin = 2;
const byte incrSetPointPin = 7;
const byte decrSetPointPin = 6;


    if (inGracePeriod) {
      // If the grace period is over reset boolean
      if (currentMillis - gracePeriodStart > gracePeriod) {
    	inGracePeriod = LOW;
      }
    }

