 
   ds.reset();
   ds.select(addr);
-  ds.write(0x44,1); // Start conversation, with parasite power on at the end
+  ds.write(0x44, 1); // Start conversation, with parasite power on at the end
 
   byte present = ds.reset();
   ds.select(addr);

  // Set the boot timestamp.
  DateTime now = RTC.now();
  bootTime = now.unixtime();
  
  lcd.begin(16,2);
  lcdWrite("Initializing...");

  espPort.begin(19200);

/**
 * Handle movement of the door
 */
void doorMove() {
  debounceDoor();
  doorStatePrev = doorState;
  if (doorState == "closed" || doorState == "closing") {
    if (doorBottomState != 0) {
      // Door isn't closed, run motor until it is.
      digitalWrite(doorClose, HIGH);
      digitalWrite(doorOpen, LOW);
      digitalWrite(doorSpeed, HIGH);
    }
    else {
      // Door is closed, stop motor
      digitalWrite(doorClose, LOW);
      digitalWrite(doorOpen, LOW);
      digitalWrite(doorSpeed, LOW);
      doorState = "closed";
      if (doorStatePrev != doorState && wifiConnected) {
        mqtt.publish("coop/status", "door|closed", 2, 0);
      }
    }
  }
  else {
    if (doorTopState != 0) {
      // Door isn't open, run motor until it is.
      digitalWrite(doorClose, LOW);
      digitalWrite(doorOpen, HIGH);
      digitalWrite(doorSpeed, HIGH);
    }
    else {
      // Door is open, stop motor.
      digitalWrite(doorClose, LOW);
      digitalWrite(doorOpen, LOW);
      digitalWrite(doorSpeed, LOW);
      doorState = "open";
      if (doorStatePrev != doorState && wifiConnected) {
        mqtt.publish("coop/status", "door|open", 2, 0);
      }
    }
  }
}

/**
 * Read current sensor data
