       + String(second) + " "
       + "unknown "  // temperature
       + "unknown "  // humidity
-      + String(compass_pitch) + " "
-      + String(compass_roll) + " "
-      + String(fwd_range_cm) + " "
-      + String(rear_range_cm) + " "
-      + String(otherData) + " ";
+      + String(compass_pitch, 1) + " "
+      + String(compass_roll, 1) + " "
+      + String(fwd_range_cm, 1) + " "
+      + String(rear_range_cm, 1) + " ";
   
      // USB debugging
      Serial.println(logMessage);


void shutdownPi()
{
  writeCommand("SHUTDOWN");
}



void writeCommand(String cmd) {
 
   String cmdMessage = "CMD " + cmd + " ";
   
   // USB debugging
   Serial.println(cmdMessage);
