   }
   else // Execute control algorithm
   {
+    Serial.println("computing PID");
      myPID.Compute();
   }
   
   // Time Proportional relay state is updated regularly via timer interrupt.
-  onTime = Output;
   Serial.println("output time on setpoint: " + String(Output));
   Serial.print("now - windowStartTime: ");
-  Serial.println(now - windowStartTime);
+  Serial.println(millis() - windowStartTime);
+  Serial.print("setpoint: ");
+  Serial.println(Setpoint);
 }
 
 void StartAutoTune()

void loop(void) {
  
  Serial.println("temp: " + String(Input) + " C");
  if (!alreadyTuned and !tuning)
  {
    StartAutoTune();
  }


// Output Relay
#define RelayPin 2

// ************************************************
// Sensor Variables and constants
// Data wire is plugged into port 12 on the Arduino

// One-Wire Temperature Sensor
// (Use GPIO pins for power/ground to simplify the wiring)
