   
   pinMode(LED_TREETOP, OUTPUT);
   pinMode(LED_TREE, OUTPUT);
+  pinMode(LED_BUILTIN, OUTPUT);
+
+  flashBuiltInLED(2);
 
   digitalWrite(LED_TREETOP, LED_OFF);
   digitalWrite(LED_TREE, LED_OFF);

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

  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() {
