REB 4216 GPS Module not working with Blynk

I use an REB 4216 GPS Module to get GPS coordinates with Arduino.It works fine standalone.However when using it with the Blynk library along ESP8266 as Wifi shield it stops working and I get no location coordinated back into the virtual pins of the Blynk App.

My code is as follows

#define BLYNK_PRINT Serial
#include <ESP8266_Lib.h>
#include <BlynkSimpleShieldEsp8266.h>
#include <SimpleTimer.h>
#include<TinyGPS.h>
char auth[] = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
char ssid[] = "st";
char pass[] = "adaafesc";
int IrPin=11;
int sendFlag=0;
long lat,lon;
#include <SoftwareSerial.h>
SoftwareSerial EspSerial(2, 3); // RX, TX
SoftwareSerial GPS(4,5);
TinyGPS gps;
#define ESP8266_BAUD 9600
ESP8266 wifi(&EspSerial);
SimpleTimer timer;
void irSensor()
{
  int val;
  Serial.println("Detecting Nearby objects");
  val=digitalRead(IrPin);
  if(val==HIGH)
  {
    if(sendFlag==0)
    {
      Serial.println("Detected Movement");
      digitalWrite(7,HIGH);
      delay(1000);
      digitalWrite(7,LOW);
      delay(1000);
      digitalWrite(7,HIGH);
      delay(1000);
      digitalWrite(7,LOW);
      delay(1000);
      Blynk.notify("Someone is approaching.");
      sendFlag=1;
    }    
  }
  else
    Serial.println("No movement detected");
}
void gpsSend()
{
 Serial.println("Sending Location");
  String loc="The location is ";
  Serial.print(loc);
  Serial.print((lat*0.000001),8);
  Serial.print(",");
  Serial.print((lon*0.000001),8);
  Serial.print("\n");
  Blynk.virtualWrite(5,lat*0.000001);
  Blynk.virtualWrite(6,lon*0.000001);
}
void setup()
{
  Serial.begin(9600);
  delay(10);
  GPS.begin(9600);
  delay(10);
  EspSerial.begin(9600);
  delay(10);
  Blynk.begin(auth, wifi, ssid, pass);
  timer.setInterval(20000, irSensor);
  timer.setInterval(30000,gpsSend);
  pinMode(IrPin,INPUT);
  pinMode(8,OUTPUT);
  pinMode(LED_BUILTIN,OUTPUT);
  digitalWrite(8,LOW);
  sendFlag=0;
}
void loop()
{
  byte a;
  if(GPS.available())  
  {
    GPS.listen();
    a=GPS.read();
    //Serial.write(a);  uncomment this line to get NMEA data on Serial window
    while(gps.encode(a))
      gps.get_position(&lat,&lon);
  }
  if(!Blynk.connected())
    Blynk.begin(auth,wifi,ssid,pass);
  EspSerial.listen();
  Blynk.run();
  timer.run(); 
}

What am I doing wrong?Thanks in advance.

No answer ?
:anguished:

This is the Blynk forum, not the magic answer forum :wink:

You havent supplied many details on what you have already tried; whether your App sees the MCU or not; or what info, if any, shows up on your serial monitor, etc.

Do some legwork and give us somthing to work with.

Only other guess I have is that there may be a conflict between your two software serial ports… check on Arduino’s site for details on usable pins for SoftwareSerial and try different pins for one of them.