The program looks for a sentence beginning with $GPRMC from the GPS. This sentence is common to most GPS.