     lattitude=gps.location.lat();
     ThingSpeak.setField(2,longtitude);
     ThingSpeak.setField(3,lattitude);
-    ThingSpeak.writeFields(myChannelNumber, myWriteAPIKey); 
+    ThingSpeak.writeFields(myChannelNumber, myWriteAPIKey);
   }
   else
   {

//for collecting GPS data and transfering longtitude and lattitude to thingspeak 
//arduino 2 

#include <TinyGPS++.h>
#include <SoftwareSerial.h>


void displayInfo()
{
  Serial.print(F("Location: "));
  if (gps.location.isValid())
  {
    Serial.print(gps.location.lat(), 6);
