 // Timing
 long previousMillis = 0;
 long tempInterval = 1000;
+long serialPrintTime = 5000;
+long currentTime = 0;
 
 // PID
-double setpoint = 95;
+double setpoint = 93;
 double input = 0;
 double oldInput = 0;
 double output;

//--> Functions <--

float checkTemp(){
  Serial.print("Getting temperature...\n\r");
  sensors.requestTemperatures();
  Serial.print("Temperature is: ");
  float tempRead = sensors.getTempC(tempProbe);
  if (tempRead == -127.00) {
    Serial.print("Error getting temperature");
    return 0.00;
  } else {
    Serial.print("C: ");
    Serial.print(tempRead);
  }
  Serial.print("\n\r\n\r");
  return tempRead;
}

boolean controlRelay(float currentTemp, float targetTemp){
  if (currentTemp == 0.00){
    Serial.println("Heater OFF");
    digitalWrite(relayPin, LOW);
    return false;
  }
  else if (currentTemp >= targetTemp - 0.5){
    Serial.println("Heater OFF");
    digitalWrite(relayPin, LOW);
    return false;
  }
  else if (currentTemp <= targetTemp - 0.75){
    Serial.println("Heater ON");
    digitalWrite(relayPin, HIGH);
    return true;
  }


// Setup PID
#define RelayPin 11
PID myPID(&input, &output, &setpoint,800,0,0, DIRECT);


//--> Arduino Setup <--
