   while (WiFi.status() != WL_CONNECTED) {
     delay(500);
     Serial.print(".");
+    flashBuiltInLED(1);
   }
  
   Serial.println("");

  timeThisTreeTurnedOn = millis();
}

void flashThisTree() {
  for (int i=0; i<7; i++) {
    digitalWrite(LED_TREE, LED_ON);
    delay(100);
    digitalWrite(LED_TREE, LED_OFF);

  pinMode(MOTION_SENSOR, INPUT);  // use a 10k external resistor to ground

  connectWiFi();
  flashBuiltInLED(5);

  Serial.println("Setting up MQTT connection");
  client.setServer(mqtt_server, 1883);
  client.setCallback(mqtt_callback);

  Serial.println("Setup is complete.\n");

  flashThisTree(2);
}

void connectWiFi() {
