     if (needCooling && canCool) {
       // If you just started cooling, write down time
       if (!beenCooling) {
-	coolingStarted = currentMillis;
+    	coolingStarted = currentMillis;
       }
 
       // Check whether you have been cooling for to long
       if (currentMillis - coolingStarted > maxCoolingPeriod) {
-	// The following will trigger to go into noon cooling state
-	// in the next iteration of the main loop
-	inCooldownPeriod = HIGH;
-	cooldownPeriodStart = currentMillis;
+    	// The following will trigger to go into noon cooling state
+    	// in the next iteration of the main loop
+    	inCooldownPeriod = HIGH;
+    	cooldownPeriodStart = currentMillis;
       }
       
       digitalWrite(compressorPin, HIGH);

#include <avr/pgmspace.h>

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


    // When a button has been pressed, go and
    // change the setpoint
    if ((digitalRead(incrSetPointPin) == LOW) || \
    	(digitalRead(decrSetPointPin) == LOW))
      {
    	// Figure out by how much to change setpoint
    	// If buttons pressed down, then increment a lot
    	int increment;
    	if (pressCount > 10) {
    	  increment = 10;
    	}
    	else {
    	  increment = 1;
    	}

    	// Now increment / decrement according to
    	// which button has been pressed
    	if(digitalRead(incrSetPointPin) == LOW) {
    	  setPoint += increment;
    	}
    	if(digitalRead(decrSetPointPin) == LOW) {
    	  setPoint -= increment;
    	}
    	pressCount++;
      }
    else {
      pressCount = 0;
    }

    // Figure out whether you need cooling or not
    // Assume you can cool and then check whether
    // anything forbids you to cool.
    // After that check whether you really need to
    // cool
