GPS and SD card problem

Serial.println((char)ss.read()); is to make sure that gps's wiring is correct (otherwise it will return -1).
while (gps.encode((char)ss.read()){...} is for encoding the gps's data.
I'm not sure if this is what you're asking :sweat_smile:

Thank you for your reply!!