 
     Serial.printf("Next loop in %d msec", LOOP_INTERVAL_MSEC);
 
-    // Blink success led
-    digitalWrite(LED_STATUS_PIN, HIGH);
+    // Blink led
+    digitalWrite(statusLed, HIGH);
     delay(500);
-    digitalWrite(LED_STATUS_PIN, LOW);
+    digitalWrite(statusLed, LOW);
 
     delay(LOOP_INTERVAL_MSEC);
 

    const int deskheight = ultrasonic.distanceRead();
    Serial.printf("Desk height: %d CM\n", deskheight);

    Serial.printf("Sending desk height of '%d' to %s:%i/%s\n", deskheight, HTTP_HOST.c_str(), HTTP_PORT, HTTP_URI.c_str());

    // Create http client
    HTTPClient http;
    http.begin(HTTP_HOST, HTTP_PORT, HTTP_URI);
    http.addHeader("User-Agent", "Desk height sensor - Wemos D1");

    int httpCode = http.POST(String(deskheight));

    // httpCode will be negative on error
    if(httpCode > 0) {

        if(httpCode == HTTP_CODE_OK) {
            String payload = http.getString();
            Serial.println(payload);
            statusLed = HTTP_LED_SUCCESS_PIN;
        }
    } else {
        Serial.printf("[HTTP] POST... failed, error: %s\n", http.errorToString(httpCode).c_str());
