So if this example is not working then I have another one. I connect my Neo-6m GPS module to Pins 18(rx) and 19(tx). And I used this sample code
void setup() {
Serial.begin(9600);
Serial1.begin(9600);
}
void loop() {
if(Serial1.available())
Serial.write(Serial1.read());
}
And I have not got printed anything to the Serial monitor. Any help would be appreciated