Nodemcu ESP8266 sends wrong signal

I have just made a Door Security Notification Project using esp8266. But, it sends wrong signal. When it is connected works automatically without changes. Sometimes, it is disconnected automatically.

I have used the following code:

//Blynk Door Security Notification System

#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
BlynkTimer timer;
char auth[] = "4k1JfmpomK69_N1LP8goni8DVSVs7F4r";
char ssid[] = "Safwan";
char pass[] = "@2255222";
int flag = 0;



void notifyOnButtonPress()
{
  int isButtonPressed = digitalRead(D1);
  if (isButtonPressed == 1 && flag == 0) {
    Serial.println("Someone Opened the door");
    Blynk.notify("Alert!shit Someone just Opened the door");
    flag = 1;
  }
  else if (isButtonPressed == 0)
  {
    flag = 0;
  }
}
void setup()
{
  Serial.begin(9600);
  Blynk.begin(auth, ssid, pass);
  pinMode(D1, INPUT_PULLUP);
  timer.setInterval(16000L, notifyOnButtonPress);
}
void loop()
{
  Blynk.run();
  timer.run();
}

But,it replies:

/home/builder/opt/arduino-builder/arduino-builder -compile -core-api-version 10611 -hardware /home/builder/opt/arduino-builder/hardware -hardware /home/builder/.arduino15/packages -tools /home/builder/opt/arduino-builder/tools -tools /home/builder/.arduino15/packages -built-in-libraries /home/builder/opt/libraries/latest -logger humantags -fqbn esp8266:esp8266:arduino-esp8266:BoardModel=starottodeved,baud=115200,dbg=Disabled,eesz=4M3M,exception=disabled,ip=lm2f,lvl=None____,vt=flash,wipe=none,xtal=80 -build-cache /tmp -build-path /tmp/569013795/build -verbose -prefs runtime.tools.esptool.path=/home/builder/.arduino15/packages/esp8266/tools/esptool/2.5.0-3-20ed2b9 -prefs runtime.tools.mkspiffs.path=/home/builder/.arduino15/packages/esp8266/tools/mkspiffs/2.5.0-3-20ed2b9 -prefs runtime.tools.xtensa-lx106-elf-gcc.path=/home/builder/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9 -prefs runtime.tools.x86-linux-gcc.path=/home/builder/.arduino15/packages/arduino/tools/x86-linux-gcc/7.2.0 -prefs runtime.tools.CMSIS.path=/home/builder/.arduino15/packages/arduino/tools/CMSIS/4.5.0 -prefs runtime.tools.avrdude.path=/home/builder/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino8 -prefs runtime.tools.flashpack.path=/home/builder/.arduino15/packages/Intel/tools/flashpack/2.0.0 -prefs runtime.tools.esptool_py.path=/home/builder/.arduino15/packages/esp32/tools/esptool_py/3.0.0 -prefs runtime.tools.bossac.path=/home/builder/.arduino15/packages/industruino/tools/bossac/1.7.0-industruino -prefs runtime.tools.core2-32-poky-linux.path=/home/builder/.arduino15/packages/Intel/tools/core2-32-poky-linux/1.6.2+1.0 -prefs runtime.tools.linuxuploader.path=/home/builder/.arduino15/packages/arduino/tools/linuxuploader/1.5.1 -prefs runtime.tools.i586-poky-linux-uclibc.path=/home/builder/.arduino15/packages/Intel/tools/i586-poky-linux-uclibc/1.6.2+1.0 -prefs runtime.tools.CMSIS-Atmel.path=/home/builder/.arduino15/packages/arduino/tools/CMSIS-Atmel/1.2.0 -prefs runtime.tools.arm-linux-gcc.path=/home/builder/.arduino15/packages/arduino/tools/arm-linux-gcc/4.9.3 -prefs runtime.tools.arm-none-eabi-gcc.path=/home/builder/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4 -prefs runtime.tools.ctags.path=/home/builder/.arduino15/packages/builtin/tools/ctags/5.8-arduino11 -prefs runtime.tools.xtensa-esp32-elf-gcc.path=/home/builder/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/1.22.0-97-gc752ad5-5.2.0 -prefs runtime.tools.avr-gcc.path=/home/builder/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7 -prefs runtime.tools.arduinoOTA.path=/home/builder/.arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -prefs runtime.tools.nrf5x-cl-tools.path=/home/builder/.arduino15/packages/arduino/tools/nrf5x-cl-tools/9.3.1 -prefs runtime.tools.dfu-util.path=/home/builder/.arduino15/packages/arduino/tools/dfu-util/0.10.0-arduino1 -prefs runtime.tools.serial-discovery.path=/home/builder/.arduino15/packages/builtin/tools/serial-discovery/1.2.1 -prefs runtime.tools.openocd.path=/home/builder/.arduino15/packages/arduino/tools/openocd/0.11.0-arduino2 -prefs runtime.tools.arc-elf32.path=/home/builder/.arduino15/packages/Intel/tools/arc-elf32/1.6.9+1.0.1 -prefs runtime.tools.rp2040tools.path=/home/builder/.arduino15/packages/arduino/tools/rp2040tools/1.0.2 -prefs runtime.tools.sketchUploader.path=/home/builder/.arduino15/packages/Intel/tools/sketchUploader/1.6.2+1.0 -prefs runtime.tools.arduino101load.path=/home/builder/.arduino15/packages/Intel/tools/arduino101load/2.0.1 -libraries /tmp/569013795/custom -libraries /tmp/569013795/pinned /tmp/569013795/Blynk_Doorsecurity_Notification

Multiple libraries were found for "BlynkSimpleEsp8266.h"

Used: /home/builder/opt/libraries/latest/blynk_1_0_1

Not used: /home/builder/opt/libraries/latest/blynk_for_chinese_0_5_9

Using library ESP8266WiFi at version 1.0 in folder: /home/builder/.arduino15/packages/esp8266/hardware/esp8266/2.5.0/libraries/ESP8266WiFi

Using library blynk_1_0_1 at version 1.0.1 in folder: /home/builder/opt/libraries/latest/blynk_1_0_1

/tmp/569013795/Blynk_Doorsecurity_Notification/Blynk_Doorsecurity_Notification.ino: In function 'void notifyOnButtonPress()':

/tmp/569013795/Blynk_Doorsecurity_Notification/Blynk_Doorsecurity_Notification.ino:16:37: error: 'D1' was not declared in this scope

int isButtonPressed = digitalRead(D1);

^

/tmp/569013795/Blynk_Doorsecurity_Notification/Blynk_Doorsecurity_Notification.ino: In function 'void setup()':

/tmp/569013795/Blynk_Doorsecurity_Notification/Blynk_Doorsecurity_Notification.ino:31:11: error: 'D1' was not declared in this scope

pinMode(D1, INPUT_PULLUP);

^

exit status 1

What you have posted as "it replies" is a part of the protocol of the compiling-process.

This means these are messages from the Arduino-IDE and not from your ESP8266.
What do you mean with "disconnects automatically?"
Disconnecting from your WLAN-Router?
Disconnecting from Blynk?
Disconnecting from your Computer?

Please describe in more details what happens.

Start with I "click on the upload button in the arduino-IDE
and then describe in detail what happends

best regards Stefan