ESP 12 keeps going offline and back on every 3 secs

Hi, I just updated blynk library and have the latest IOS Blynk app.
My esp is simply a magnetic switch to tell if the gate is closed or open.
I understand the bug at server for LCD is being fixed but can anyone help me with why the esp keeps going offline and back on every 3 secs? I have 2 esp on 1 dashboard
Everything works as per normal though even with the esp pulsing “Offline” every 3 secs. I have tried with another esp using the same sketch and problem remains. If I use a different sketch from the one below, it does not have this issue of going offline.
Here’s the code

#define BLYNK_PRINT Serial    // Comment this out to disable prints and save space
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <BlynkWidgets.h>
#include <WidgetLCD.h>
WidgetLCD lcd(V12); //

 int sensorPin=12; // assign widget LCD to tie with gpio pin 12

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] ="xx"; 

// ====================================================== 

void setup()
  pinMode (sensorPin,INPUT); // assign sensorPin as input

  pinMode(sensorPin, INPUT_PULLUP); // use ESP12 internal resistor to pullup sensor pin high i.e. 3V

  lcd.clear(); // clear LCD widget
  Blynk.begin(auth, "xx", "xx");

void loop()
   sensorCheck(); // run sub-routine to check status of proximity sensor
 // sub-routine to check status of proximity sensor

 void sensorCheck() // sub-routine to check sensor status
 int sensorValue = digitalRead(sensorPin);  // read the sensor pin and assign sensorValue to it.
  if (sensorValue==HIGH){  // if value is HIGH, display GATE OPEN on LCD
    lcd.print(2,0,"GATE IS OPEN");  // print starts at column 2, row 0 or 1st row. 2 rows in total
     else {
          lcd.print(2,0,"Gate  Closed ");} // if value is LOW, display Gate Closed on LCD
                                          // the magnetic switch is wired such that when in contact, it pulls the sensor
                                          // pin low.

use simpletimer library to get the sensor check out of the loop so it happens less often?

do you know how many time loop() runs per seconds? that is how many times you are trying to send LCD message to Blynk?

am i right?

i think it is called “flooding the server”