How I can send data information without work WiFi to LCD? Hi everyone I am beginning learn coding and the second language English. I have small project I use Arduino uno , esp8266 , dht11 , lcd I2C and use blynk app in my project I have the code and work probably when WiFi ON but I have question How I can get the information data from dht to lcd without open the WiFi. Now I get information ( Temp and humidity ) on LCD when WiFi ON only. How I can make Temp and humidity display on LCD with and without WiFi.
#include &lt;BlynkSimpleShieldEsp8266.h&gt;
#include &lt;DHT.h&gt;
#include &lt;LiquidCrystal_I2C.h&gt;
LiquidCrystal_I2C lcd(0x3F, 20, 4);
char auth[] = &quot;*******************************&quot;;
char ssid[] = &quot;***********&quot;;
char pass[] = &quot;*********&quot;;
#include &lt;SoftwareSerial.h&gt;
SoftwareSerial EspSerial(2, 3); // TX, RX
#define ESP8266_BAUD 9600
ESP8266 wifi(&amp;EspSerial);
#define DHTPIN 8
#define DHTTYPE DHT22
DHT dht(DHTPIN, DHTTYPE);

void setup()
{
  Serial.begin(9600);
  lcd.init();
  lcd.backlight();
  EspSerial.begin(ESP8266_BAUD);
  Blynk.begin(auth, wifi, ssid, pass);
  dht.begin();
}

void loop()
{
  LCD();
  int h = dht.readHumidity();
  int t = dht.readTemperature();
  Blynk.virtualWrite(V1, t);
  Blynk.virtualWrite(V2, h);
}
void LCD()
{
  int h = dht.readHumidity();
  int t = dht.readTemperature();
  lcd.clear();
  lcd.setCursor(0, 0);
  lcd.print(&quot; ******************&quot;);
  lcd.setCursor(3, 1);
  lcd.print(&quot;TEMP: &quot;);
  lcd.print(t);
  lcd.setCursor(3, 2);
  lcd.print(&quot;HUM : &quot;);
  lcd.print(h);
}
Blynk.connected() returns true when hardware is connected to Blynk Server, so you can guard Blynk code with
if( Blynk.connected() ){
  // do Blynk things here
}

// Update the LCD anywhere outside of the above &quot;if&quot; statement.