 
   String logOledString2;
   logOledString2 += "Sat visible :";
-  logOledString2 += GPSsat;
+  logOledString2 += printInt(gps.satellites.value(), gps.satellites.isValid(), 5);
 
     String logOledString3;
-  logOledString3 += "Ultrasound :";
-  logOledString3 += dist;
-
-  int str_len1 = logOledString1.length() + 1; 
+  if ((dist >= 0) && (dist < 10))  {
+  logOledString3 += "Ultrasound :00";
+  }
+  else if ((dist >= 10) && (dist < 100))  {
+    logOledString3 += "Ultrasound :0";
+  }
+
+  else if (dist >= 100) {
+    logOledString3 += "Ultrasound :";
+  }
+  
+
+  
+  logOledString3 += String(dist);
+
+  int str_len1 = logOledString1.length() + 1;
   char char_array1[str_len1];
   logOledString1.toCharArray(char_array1, str_len1);
 
-    int str_len2 = logOledString2.length() + 1; 
+  int str_len2 = logOledString2.length() + 1;
   char char_array2[str_len2];
   logOledString2.toCharArray(char_array2, str_len2);
 
-     int str_len3 = logOledString3.length() + 1; 
+
+
+  int str_len3 = logOledString3.length() + 1;
   char char_array3[str_len3];
   logOledString3.toCharArray(char_array3, str_len3);
-  
+
 
   SeeedOled.setTextXY(0, 0);         //Set the cursor to Xth Page, Yth Column
   SeeedOled.putString(char_array1); //Print the String
-  
+
   SeeedOled.setTextXY(1, 0);         //Set the cursor to Xth Page, Yth Column
   SeeedOled.putString(char_array2); //Print the String
 
-    SeeedOled.setTextXY(2, 0);         //Set the cursor to Xth Page, Yth Column
+  SeeedOled.setTextXY(2, 0);         //Set the cursor to Xth Page, Yth Column
   SeeedOled.putString(char_array3); //Print the String
-  
+
 
 }
 


  readNMEA();

  if (currentMillis - previousMillis1 >= time1)
  {
    oled();
    previousMillis1 = currentMillis;  // Remember the time

  }

  //Serial.println("card initialized.");
  SeeedOled.setTextXY(1, 0);         //Set the cursor to Xth Page, Yth Column
  SeeedOled.putString("card initialized"); //Print the String

  //char filename[16]; // make it long enough to hold your longest file name, plus a null terminator
  int n = 0;
  snprintf(filename, sizeof(filename), "data%03d.txt", n); // includes a three-digit sequence number in the file name
