   if(distance1 <= 200){
     Serial.print("SF ");
     Serial.print(distance1);// In inches
-    Serial.println();
+    Serial.print(" ");
+    //Serial.println();
+  }
+  else{
+    Serial.print("SF ");
+    Serial.print(0);// In inches
+    Serial.print(" ");
   }
   if(distance2 >= 100){
     Serial.print("SL ");
     Serial.print(distance2);// In inches
-    Serial.println();
+    Serial.print(" ");
+    //Serial.println();
+  }
+  else{
+    Serial.print("SL ");
+    Serial.print(0);// In inches
+    Serial.print(" ");
   }
   if(distance3 >= 100){
     Serial.print("SR ");
     Serial.print(distance3);// In inches
-    Serial.println();
+    Serial.print(" ");
+    //Serial.println();
+  }
+  else{
+    Serial.print("SR ");
+    Serial.print(0);// In inches
+    Serial.print(" ");
   }
 }
 //Print gps lat and long

  {
    x=(Serial.read()-'0');
  }
  if(x == 1 || distance1 == 0)
  {
    calibrate();
    x=0;
  }
  else
  {
    print_all();
  }
  read_gps();
  //delay(150);
}


    Serial.print(F("INVALID"));
  }
  Serial.print(latitude/samples, 6);
  Serial.print(" ");
  Serial.print(longitude/samples, 6);
  Serial.print(" ");
  
}
void read_sensors(){
