       ds.write(0x44);
     }
 
+    if (!fanOverride) {
     if (dsRead) {
-      if (maxTemp <= tempMin-tempHyst) {
+      if (maxTemp <= (tempMin - tempHyst)) {
         if (fanPWM > 0) {
           debug(currentMillis, F("Fan off\r\n"));
           fanPWM = 0;

  //  attachInterrupt(switchTriggerIRQ, switchTriggerInterrupt, FALLING);

  digitalWrite(statusLED, LOW);
}


void loop() {
  unsigned long currentMillis;
  unsigned long elapsedMillis;

  currentMillis = millis();
  // millis() will overflow after approximately 50 days.

  }
  lastMillis = currentMillis;
  // assume that none of the following intervals overflow


  // add up dsMillis early, so the door driver can reset it
  dsMillis += elapsedMillis;


  // fast debounce driver error signals to filter short glitches
