     case s_idle:
       // State is currently: idle. Neather cooling or heating.
       if (checkHeatRequired(dht.readTemperature(), targetHeaterTemperature, targetHeaterTemperatureHyst, false))
-      {
         stateMachine = s_HeaterStart;    // Heat required, start.
-      }
       else if (checkCoolRequired(dht.readTemperature(), targetCoolerTemperature, targetCoolerTemperatureHyst, false))
-      {
         stateMachine = s_CoolerStart;    // Cooling required, start.
-      }
-
       break;
 
     case s_HeaterStart:

      // This inhibits the cooler turning on.
      // Check if we need to stop, by checking if heat is still required.
      if (!checkHeatRequired(dht.readTemperature(), targetHeaterTemperature, targetHeaterTemperatureHyst, true))
      {
        // Heat no longer required, stop.
        stateMachine = s_HeaterStop;
      }
      break;

    case s_HeaterStop:

      // Set state mahcine to idle on the next loop
      stateMachine = s_idle;
      break;
  }}

void setup() {
  // Initialize pins
