Help just to turn on LED

I am new to Blynk. I know how to turn on outputs but now I simply want to illuminate an LED widget with an input on my Node MCU ESP8266. The real world input is tied to GPIO 4 on my Node MCU. Here is the code I am trying:
/* ********************************************************************************************
Home in the Hills 2


*/

#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <Wire.h>
WidgetLED led1(V6);

char auth[] = “auth”;

void setup()
{
pinMode(0, INPUT); // IOT Input

Serial.begin(115200);
Blynk.begin(auth, “SSID”, “PASSWORD”);
}

// =================={ Virtual LED Input Monitoring }=========
void checkPin()
{
if (digitalRead(0) == LOW) // GPIO4
{
led1.off();

} else {
led1.on();
//Blynk.email("myname@yahoo.com", “INPUT IS ON”);
}
}

// ==============( Void Loop ) ====================================

void loop()
{
checkPin();
Blynk.run();
yield();
}

Never mind, I found it.

Welcome to Blynk @rrfisher

Please don’t post format unformatted code to the forum.

Blynk has dozens of sketches already written for you and it is easier to start with them.

checkPin() in loop() is bad form. See PushData example for using SimpleTimer to call functions at chosen intervals rather than thousands of times a second in loop().

Isn’t D2 GPIO 4 on a NodeMCU?

So digitalRead would be (D2) or better just stick to GPIO’s and use (4).