     // wait for WiFi connection
     if((MyWiFi.run() == WL_CONNECTED)) {
 
-        digitalWrite(D1, HIGH);   // Turn the LED on 
+        digitalWrite(LED_BUILTIN, HIGH);   // Turn the LED on 
 
         HTTPClient http;
 

ESP8266WiFiMulti MyWiFi;

void setup() {
    pinMode(D1, OUTPUT);     // Initialize the LED_BUILTIN pin as an output

    Serial.begin(115200);



        http.end();
    }
    digitalWrite(LED_BUILTIN, LOW);  // Turn the LED off 

    delay(1000);
}
