        digitalWrite(doorClose, LOW);
        digitalWrite(doorOpen, LOW);
        digitalWrite(doorSpeed, LOW);
+       doorState = "open";
+       if (doorStatePrev != doorState && wifiConnected) {
+         mqtt.publish("coop/status", "door|open", 2, 0);
+       }
      }
    }
  }

 */
 void doorMove() {
   debounceDoor();
   if (doorState == "closed" || doorState == "closing") {
     if (doorBottomState != 0) {
       // Door isn't closed, run motor until it is.

OneWire ds(tempSense);
LiquidCrystal lcd(lcd_4, lcd_5, lcd_6, lcd_11, lcd_12, lcd_13, lcd_14);

ESP esp(&espPort, chpdPin);
// Replace previous line with following line to enable ESP debug output.
// ESP esp(&espPort, &debugger, chpdPin);

MQTT mqtt(&esp);
boolean wifiConnected = false;

