Trouble with grove gps


I have the Grove Gps connected directly to my Arduino Mega 2560. The code seems to be fine, there are no error messages popping up, however, nothing is showing up on the serial monitor.
here is the code i am using:

#include <SoftwareSerial.h>

SoftwareSerial gps(2,3);
char data;

void setup()

void loop()
if(gps.available() > 0)
data =;

Any ideas or similar experiences?

Hi, Ever
We need to know the product name or SKU of your GPS, such as Grove - GPS (air530), SKU 109020022. To help us determine which product is specific, it is best to take a hardware connection diagram, let us know how your hardware is connected. So we can help you test the program.