Blynk lost connection

Can anyone please help with this? I’m using an Arduino ESP32 for this project. My wifi is connecting but seems like Blynk is not working:

#define BLYNK_PRINT Serial

#define BLYNK_TEMPLATE_ID "TMPL6V4egzmmb"
#define BLYNK_TEMPLATE_NAME "Table Tracking"
#define BLYNK_AUTH_TOKEN "GHaVBBTeg8qHtXYmrYTWk1rh4kixTBPg"

#include <WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp32.h>
#include <LiquidCrystal_I2C.h>

char auth[] = BLYNK_AUTH_TOKEN;
char ssid[] = "Joyce's iPhone";
char pass[] = "1998117ckw";

BlynkTimer timer; 

LiquidCrystal_I2C lcd(0x27, 16, 2);

int sensor1 = 13;
int sensor2 = 14;

int available_tables = 2; // Initialize available tables
int unavailable_tables = 1; // Define the number of unavailable tables

void setup() 
  lcd.print("LCD CONNECTING...");
  Blynk.begin(auth, ssid, pass, "");

void updateTableStatus(int pin, int table_number) {
  if (digitalRead(table_number) == LOW) {
    if (pin == 0) {
      lcd.setCursor(0, 0);
      lcd.print("Table 1 is Full");
    else if (pin == 1) { 
      lcd.setCursor(0, 1);
      lcd.print("Table 2 is Full");
  } else {
    if (pin == 0) {
      lcd.setCursor(0, 0);
      lcd.print("Table 1 is Free");
    } else if (pin == 1) {
      lcd.setCursor(0, 1);
      lcd.print("Table 2 is Free");

void updateAvailableTables() {
  available_tables = 2; // Reset the count
  for (int pin = 1; pin <= 1; pin++) {
    if (digitalRead(13) == LOW) {
      available_tables -= unavailable_tables;
    if (digitalRead(14) == LOW) {
      available_tables -= unavailable_tables;

void loop() {
  updateTableStatus(0, sensor1);
  updateTableStatus(1, sensor2);
Serial Output:
[3142] Connecting to Joyce's iPhone

@Joyceying 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:

Copy and paste these if you can’t find the correct symbol on your keyboard.

Also, when you post serial monitor output this should be done by copying the text and pasting it into your forum post (also with triple backticks at the beginning and end). Including the full serial output from when you reboot your device is more helpful than posting just the last line.


Thank you for your inform, I am trying to find a solution to connect to Blynk, as there not showing any error message so I also feel trouble on it.

You haven’t done either of the things I asked you to do.
You’ve added a single blockquote symbol (>) at the beginning of your code instead of triple backticks at the beginning and end, and you’ve replaced one screenshot with another, instead of copying and pasting the actual serial monitor text and p[asting that with triple backticks too.


Thanks again, I have edited the post.

So whee is your full serial output?


yup… I think there was not responding on the blynk

I keep asking you to post your full serial output, from the point when you boot the device, but you’re just posting the last line, or last few lines.

I suspect that either the SSID or WiFi password that you’ve put in your sketch are wrong (both are case-sensitive) or that your phone is providing a 5GHz WiFi network when your device needs a 2.4GHz network.
There are ways to diagnose this, but they would require you to post your entire serial output from the moment the device boots, which you seem unable to do.


This is my full serial output, and nothing is shown after that. I suspect it has keep reminder my previous connection data. so when I try to change to another WiFi address, it does not respond.

It’s what’s shown BEFORE that which you aren’t sharing.
My experience of ESP32s, the timestamp and your previous attempts at posting screenshots tell me that there is more than one line of data.

Your suspicions are incorrect.