Arduino Mega and ESP01: ESP is not responding using the code provided in blynk example

I am using Arduino Mega 2560 and ESP01. I used the code from Blynk Example (Link). My pin configuration is according to the image i added. I am getting the following output in the serial output

19:44:02.051 ->     ___  __          __
19:44:02.051 ->    / _ )/ /_ _____  / /__
19:44:02.051 ->   / _  / / // / _ \/  '_/
19:44:02.051 ->  /____/_/\_, /_//_/_/\_\
19:44:02.051 ->         /___/ v1.3.2 on Arduino Mega
19:44:02.051 -> 
19:44:02.051 ->  #StandWithUkraine    https://bit.ly/swua
19:44:02.051 -> 
19:44:02.051 -> 
19:44:02.559 -> [518] Connecting to Look Ma, No Wires
19:44:03.588 -> [1529] ESP is not responding

I flashed my esp01 following this (Link) youtube tutorial and its in 115200 baud rate.

Did you edit the sketch to use the same baud rate in your #define ESP8266_BAUD command?

Pete.

no, i was told that does not need to be changed. let me try.

Tried it, did not work. This is the exact code i am using. just auth token and tempelate id hidden.

#define BLYNK_TEMPLATE_ID "******"
#define BLYNK_TEMPLATE_NAME "Faw"
#define BLYNK_AUTH_TOKEN "*********************"

/* Comment this out to disable prints and save space */
#define BLYNK_PRINT Serial


#include <ESP8266_Lib.h>
#include <BlynkSimpleShieldEsp8266.h>

// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "Look Ma, No Wires";
char pass[] = "APD2F2206";

// Hardware Serial on Mega, Leonardo, Micro...
#define EspSerial Serial1

// or Software Serial on Uno, Nano...
//#include <SoftwareSerial.h>
//SoftwareSerial EspSerial(2, 3); // RX, TX

// Your ESP8266 baud rate:
#define ESP8266_BAUD 115200

ESP8266 wifi(&EspSerial);

void setup()
{
  // Debug console
  Serial.begin(9600);
  
  // Set ESP8266 baud rate
  EspSerial.begin(ESP8266_BAUD);
  delay(10);

//  Blynk.begin(BLYNK_AUTH_TOKEN, wifi, ssid, pass);
  // You can also specify server:
  Blynk.begin(BLYNK_AUTH_TOKEN, wifi, ssid, pass, "blynk.cloud", 80);
  //Blynk.begin(BLYNK_AUTH_TOKEN, wifi, ssid, pass, IPAddress(192,168,1,100), 8080);
}

void loop()
{
  Blynk.run();
}

If you’ve configured the ESP-01 to communicate at one baud rate then your Mega needs to also communicate with the ESP-01 at the same baud rate, otherwise the data that passes between them will be meaningless.

Do you have a USB to serial adapter (FTDI adapter)?

Pete.