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

void heaterOff() {
  if (heaterIsOn) {
    digitalWrite(heaterPin, LOW);
    Serial << STATMSG << "Turning heater off" << dutyCycle << ENDMSG;
  }
  heaterIsOn = LOW;
}
// 30 sec
const unsigned long windowSize = 10000;


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