   Serial.println(jsonAccGyro);
   memset(bufff, 0, 512); jsonAccGyro.toCharArray(bufff, 512);
   mqtt.publish("iot-uplink", bufff);
+  return;
 }
 
 // Read magneto raw values and publish json 
 
 void JsonReportSensorMagneto(){
-  
   // read raw magneto measurements from device
   magneto.getHeading(&mx, &my, &mz);
   // Create Json and publish

// Read distance values from ultrasonic and publish json 

void JsonReportSensorDistance(){

  // Create Json and publish
  String jsonDist = String("{\"sensor\":\"distance\",\"time\":\"" + TimeStr + "\",\"data\":[" + ultrasonic.Ranging(CM) + "]}");
  Serial.println(jsonDist); // CM or INC

  Serial.println(jsonMagneto);
  memset(bufff, 0, 512); jsonMagneto.toCharArray(bufff, 512);
  mqtt.publish("iot-uplink", bufff);
  return;
}

// Read line tracker values and publish json 

void JsonReportSensorEdge() {
  // Create Json and publish
  String jsonEdge = String("{\"sensor\":\"edge\",\"time\":\"" + TimeStr + "\",\"data\":[" + left_edge + "," + right_edge + "]}");
  Serial.println(jsonEdge);
