   _averageHumidityLastMonth = 0;
   _averageCoolingOvershoot = 0.0;
     
-  pinMode(COOLING_PIN, OUTPUT);
-  digitalWrite (COOLING_PIN, LOW);
-    
-  pinMode(DEHUMIDIFIER_PIN, OUTPUT);
-  digitalWrite (DEHUMIDIFIER_PIN, LOW);
+  pinMode(temperature.pinToIncrease, OUTPUT);
+  pinMode(temperature.pinToDecrease, OUTPUT);
+  pinMode(humidity.pinToIncrease, OUTPUT);
+  pinMode(humidity.pinToDecrease, OUTPUT);
+  digitalWrite (temperature.pinToIncrease, LOW);
+  digitalWrite (temperature.pinToDecrease, LOW);
+  digitalWrite (humidity.pinToIncrease, LOW);
+  digitalWrite (humidity.pinToDecrease, LOW);
   
   Serial.begin(115200);
   Serial.println ("\n\tDay\tHour\tMin\tSec\tT\tRH\tCool\tDehum.\tRunning Averages");

#include <dht.h> // For reading from the DHT22 Temperature/Humidity sensor

#define UINT32_MAX uint32_t(-1)


    Serial.print ("\t");
    Serial.print (environmentData.humidity,1);
    Serial.print ("\t");
    Serial.print (temperature.state == CONTROLLING_DOWN ? "on":"off");
    Serial.print ("\t");
    Serial.print (humidity.state == CONTROLLING_DOWN ? "on":"off");
    Serial.print ("\t");

    temperature.current = environmentData.temp;
    humidity.current = environmentData.humidity;
    updateState (temperature);
    updateState (humidity);
    updateAverages (temperature.current, humidity.current);
    
    // For now, print the averages every time (when they are valid):
    if (_averageTempLastHour > 0) {
