How can I see the 16x2 LCD value In the Blynk Apps. Please re-Edit my code

Need a virtual pin for get the value in Blynk LCD widget. Please help me if you can. ////////////

#define BLYNK_PRINT Serial
#include <BlynkSimpleEsp8266.h>
#include <ESP8266WiFi.h>
#include <LiquidCrystal.h>
LiquidCrystal lcd(7,8,10,11,12,13);  /// This is arduino UNO pin, you have to used your ESP8266 pin. 

// WidgetLCD lcd(V1);           // I've tried by this widget, It's not working. 


char auth [] = "FYulGNNZxphnCh-KDnhJ";
char ssid [] = "Link3. 2";
char pass [] = "112uu34455";

int num_Measure = 128 ; // Set the number of measurements   
int pinSignal = A0; // pin connected to pin O module sound sensor  
int redLed = 5; 
long Sound_signal;    // Store the value read Sound Sensor   
long sum = 0 ; // Store the total value of n measurements   
long level = 0 ; // Store the average value   
int soundlow = 40;
int soundmedium = 500;



void setup ()  
{   
  pinMode (pinSignal, INPUT); // Set the signal pin as input   
  Serial.begin (9600); 
  lcd.begin(16,2);
  Blynk.begin(auth, ssid, pass); 
}  
  
void loop ()  
{  
  // Performs 128 signal readings   
  for ( int i = 0 ; i <num_Measure; i ++)  
  {  
   Sound_signal = analogRead (pinSignal);  
    sum =sum + Sound_signal;  
  }  
 
  level = sum / num_Measure; // Calculate the average value 
    
  Serial.print("Sound Level: ");
  lcd.print("Sound Level= ");

  Serial.println (level-33);  
  lcd.print(level-33);

  {if(level-33<soundlow)
  {
    lcd.setCursor(0,2);
    lcd.print("Intensity= Low");
    digitalWrite(redLed,LOW);
    
  }
  if(level-33>soundlow && level-33<soundmedium)
  {
    lcd.setCursor(0,2);
    lcd.print("Intensity=Medium"); 
     digitalWrite(redLed,LOW); 
  }
  if(level-33>soundmedium)
  {
    lcd.setCursor(0,2);
    lcd.print("Intensity= High");   
    digitalWrite(redLed,HIGH); 
  }

  }
  
  sum = 0 ; // Reset the sum of the measurement values  
  delay(200);
  lcd.clear();
  Blynk.run();
}

OUTPUT:
//////////////// Sound Level: 250 ///////////////////////////////
//////////////// Intensity: Medium //////////////////////////////

@Hiron_Bappy please edit your post, using the pencil icon at the bottom, and add triple backticks at the beginning and end of your code so that it displays correctly.
Triple backticks look like this:
```

Pete.

Thanks, Please help me and solve the issue.

The first thing that YOU need to do is read this, restructure your code so that you have a clean void loop and a timer to call your new function that will take sound level readings and display them:

Once you’ve done this then post your updated code (correctly formatted of course). We can’t do this for you, because we don’t have your hardware to test the re-formatted code.

Pete.

Can you please check it now?

#define BLYNK_PRINT Serial
#include <BlynkSimpleEsp8266.h>
#include <ESP8266WiFi.h>
#include <LiquidCrystal.h>
LiquidCrystal lcd(7,8,10,11,12,13);
// WidgetLCD lcd(V1);
char auth [] = "FYulGNNZxphnCh-KDnhJ";
char ssid [] = "Link3. 2";
char pass [] = "112uu34455";

int num_Measure = 128 ; // Set the number of measurements   
int pinSignal = A0; // pin connected to pin O module sound sensor  
int redLed = 5; 
long Sound_signal;    // Store the value read Sound Sensor   
long sum = 0 ; // Store the total value of n measurements   
long level = 0 ; // Store the average value   
int soundlow = 40;
int soundmedium = 500;


BlynkTimer timer;

void setup ()  
{ 
   
  pinMode (pinSignal, INPUT); // Set the signal pin as input   
  timer.setInterval(1000L, sensorDataSend); 
  Serial.begin (9600); 
  lcd.begin(16,2);
  Blynk.begin(auth, ssid, pass); 
}  
void sensorDataSend()
{
  sensorvalue = analogRead (pinSignal);
  Blynk.virtualWrite(V1, sensorValue);
  for ( int i = 0 ; i <num_Measure; i ++)  
  {  
   Sound_signal = analogRead (pinSignal);  
    sum =sum + Sound_signal;  
  }  
 
  level = sum / num_Measure; // Calculate the average value 
    
  Serial.print("Sound Level: ");
  lcd.print("Sound Level= ");

  Serial.println (level-33);  
  lcd.print(level-33);

  {if(level-33<soundlow)
  {
    lcd.setCursor(0,2);
    lcd.print("Intensity= Low");
    digitalWrite(redLed,LOW);
    
  }
  if(level-33>soundlow && level-33<soundmedium)
  {
    lcd.setCursor(0,2);
    lcd.print("Intensity=Medium"); 
    digitalWrite(redLed,LOW); 
  }
  if(level-33>soundmedium)
  {
    lcd.setCursor(0,2);
    lcd.print("Intensity= High");   
    digitalWrite(redLed,HIGH); 
  }

  }
  
  sum = 0 ; // Reset the sum of the measurement values  
  delay(200);
}
void loop ()  
{     
  lcd.clear();
  Blynk.run();
  timer.run(); 
}

Why do you have this in your void loop?

Is this producing the desired result in the Blynk app?

Pete.

No,
Please read at first, I’m new Blynk User, I’ve used this code in my ESP8266 for get the result in LCD,
My display showing me data well, Now willing to show the data in Blynk APPS,

#include <LiquidCrystal.h>
LiquidCrystal lcd(16,2,14,12,13,15);

int num_Measure = 128 ; // Set the number of measurements   
int pinSignal = A0; // pin connected to pin O module sound sensor  
int redLed = 5; 
long Sound_signal;    // Store the value read Sound Sensor   
long sum = 0 ; // Store the total value of n measurements   
long level = 0 ; // Store the average value   
int soundlow = 40;
int soundmedium = 500;
 
void setup ()  
{   
  pinMode (pinSignal, INPUT); // Set the signal pin as input   
  Serial.begin (9600); 
  lcd.begin(16,2); 
}  
   
void loop ()  
{  
  // Performs 128 signal readings   
  for ( int i = 0 ; i <num_Measure; i ++)  
  {  
   Sound_signal = analogRead (pinSignal);  
    sum =sum + Sound_signal;  
  }  
 
  level = sum / num_Measure; // Calculate the average value   
  Serial.print("Sound Level: ");
  lcd.print("Sound Level= ");
  Serial.println (level-33);  
  lcd.print(level-33);
  if(level-33<soundlow)
  {
    lcd.setCursor(0,2);
    lcd.print("Intensity= Low");
     digitalWrite(redLed,LOW);
  }
  if(level-33>soundlow && level-33<soundmedium)
  {
    lcd.setCursor(0,2);
    lcd.print("Intensity=Medium"); 
     digitalWrite(redLed,LOW); 
  }
  if(level-33>soundmedium)
  {
    lcd.setCursor(0,2);
    lcd.print("Intensity= High");   
    digitalWrite(redLed,HIGH); 
  }
  sum = 0 ; // Reset the sum of the measurement values  
  delay(200);
  lcd.clear();
}

In that case I need to know how to apply Blynk code on this code. May be I have to use virtual PIN, Now let me know where I’ll used the virtual pin for get the value. Please help me.

You seem to be going backwards.

You had restructured your code to use a timer to call a function which takes your sound readings and displays them locally.
In my opinion you went further than I would have liked, because you added-in a:

to this function, which wasn’t what I suggested for you to do in the initial restructuring phase.
You also left behind an lcd.clear command in your void loop, but you wouldn’t say why.

Now you appear to have reverted to your original code, which is incompatible with Blynk because it has too much in your void loop.

Re-read my first post, and re-visit your second code.

Pete.

Thanks for your reply, I’ve solved the issue.
It’s working now.