 PubSubClient client(espClient);
 
 // For Wemos D1 Mini, the built-in LED is D4
-#define MOTION_SENSOR D3  // D8 has built-in 10k pull-down, D3 has pull-up
-#define LED_TREETOP D1
-#define LED_TREE    D2
+#define MOTION_SENSOR D2 // same as button on Witty  // D8 has *external, always-active* 10k pull-down, D3 has pull-up
+#define LED_TREETOP D6   // same as Green RGB LED on Witty
+#define LED_TREE    D8   // same as Red RGB LED on Witty
 
 #define LED_ON  HIGH
 #define LED_OFF LOW

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

  connectWiFi();

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

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

void connectWiFi() {

  
  pinMode(LED_TREETOP, OUTPUT);
  pinMode(LED_TREE, OUTPUT);
  pinMode(LED_BUILTIN, OUTPUT);

  flashBuiltInLED(2);

  digitalWrite(LED_TREETOP, LED_OFF);
  digitalWrite(LED_TREE, LED_OFF);
