Read breaker - widgetLED

Hello
I have a problem. I want to use widgetLED reading of the limit switch. I can not write code to read me two limit switches.

#define BLYNK_PRINT Serial // Comment this out to disable prints and save space
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <SimpleTimer.h>
 
// Include the libraries we need
#include <OneWire.h>
#include <DallasTemperature.h>
 
// Data wire is plugged into port 2 on the Arduino
#define ONE_WIRE_BUS 2
 
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "kod";
SimpleTimer timer;
int pin = D4; // Pin cyfrowy krancówka
WidgetLED led1(V2); // Pin wirtualny krancowy 
 
OneWire oneWire(ONE_WIRE_BUS);
DallasTemperature sensors(&oneWire);
 
void setup()
{
pinMode(pin,INPUT);
Serial.begin(9600);
Blynk.begin(auth, "Nazwa", "Hasło"); // Nazwa i hasło sieci WIFI
sensors.begin();
timer.setInterval(1000L, brama); //Sprawdzanie stanu 
timer.setInterval(2000L, temperatura); //Sprawdzanie stanu 
}
 
void loop()
{
timer.run();
Blynk.run();
}
 
void temperatura()
{
  sensors.requestTemperatures();
  delay(5);
Blynk.virtualWrite(V1,sensors.getTempCByIndex(0)); //Pin wirtualny do temperatury 
}
 
void brama()
{
if(digitalRead(pin) == 1){
  led1.on();
}
else{
  led1.off();
}
}