   } else {
      digitalWrite(RelayPin,LOW);
   }
+  
 }
 
 

  } else {
    DriveOutput();
  }
}

void loop() {

   }
   if (Bridge.get("state", tempSetBuf, 8) > 0) {
     String setState = String(tempSetBuf);
     Console.println("Set State: " + setState);
     if (setState.equals("on")){
       //turn the PID on
       myPID.SetMode(AUTOMATIC);
       windowStartTime = millis();
       opState = RUN; 
     }  else if (setState.equals("off")) {
       myPID.SetMode(MANUAL);
       digitalWrite(RelayPin, LOW);
       opState = OFF;
