   Serial << STATMSG << "Set duty cycle to " << dutyCycle << ENDMSG;
 }
     
-
 void heaterOn() {
   digitalWrite(heaterPin, HIGH);
   heaterIsOn = HIGH;

      windowStartTime += windowSize;

    if (millis() - windowStartTime < onTime) {
      /* if (!heaterIsOn) */
      /* 	Serial << "Heater on " << millis()/1000 << "\n"; */
      heaterOn();
    }
    else {
      /* if (heaterIsOn) */
      /* 	Serial << "Heater off" << millis()/1000 << "\n"; */
      heaterOff();
    }
    

int dutyCycle; 

void heater_msg() {
  Serial << STATMSG << "Heater msg received" << ENDMSG;
  while (cmdMessenger.available()) {
    char buf[350] = {'\0'};
    cmdMessenger.copyString(buf, 350);
