     char buf[350] = {'\0'};
     cmdMessenger.copyString(buf, 350);
     if (strncmp(buf, "1", 1) == 0) {
-      digitalWrite(pumpPin, HIGH);
+      pumpOn();
     }
     else {
-      digitalWrite(pumpPin, LOW);
+      pumpOff();
     }
   }
 }

void heaterOn() {
  if (!heaterIsOn) {
    digitalWrite(heaterPin, HIGH);
    Serial << STATMSG << "Turning heater on" << dutyCycle << ENDMSG;
  }
  heaterIsOn = HIGH;
}

unsigned long windowStartTime;
boolean inDutyCycleMode;
boolean heaterIsOn = LOW;
boolean pumpIsOn = LOW;

void setSetPoint(int value) {
  setpoint = double(value) / 10;
