 
 uint16_t proxim_samples[NB_PROXIM_SAMPLES];
 bool event_detected = false;
+
+const uint8_t MAX_STRING_LENGTH = 32;
+const char *MQTT_SERVER = "172.16.0.11";
+const uint16_t MQTT_PORT = 1883;
+
+WiFiClient espWifiClient;
+PubSubClient mqttClient(espWifiClient);
 
 void heartbeat() {
   Serial.print("average promimity = ");

    Serial.println("Connected to Proximity Sensor.");
  }

  tickerHeartbeat.attach(10, heartbeat);
  tickerUpdate.attach_ms(100, update);


    door_closed();
    raised = false;
  }
  // Let the MQTT client do some work
  mqttClient.loop();

  // Let the ESP Wifi do some work?
  yield();
}

