     }
     // Create Json and publish
     String jsonRfid = String("{\"sensor\":\"rfid\",\"data\":[" + NUID + "]}");
-    Serial.println(jsonRfid);
+    if (debugging == true) { Serial.println(jsonRfid);}
     memset(bufff, 0, 512); jsonRfid.toCharArray(bufff, 512);
     mqtt.publish("iot-uplink", bufff);
     return;

void JsonReportSensorDistance(){
  // Create Json and publish
  String jsonDist = String("{\"sensor\":\"distance\",\"time\":\"" + TimeStr + "\",\"data\":[" + ultrasonic.Ranging(CM) + "]}");
  Serial.println(jsonDist); // CM or INC
  memset(bufff, 0, 512); jsonDist.toCharArray(bufff, 512);
  mqtt.publish("iot-uplink", bufff);
  return;

  accelgyro.getMotion6(&ax, &ay, &az, &gx, &gy, &gz);
  // Create Json and publish
  String jsonAccGyro = String("{\"sensor\":\"acc_gyro\",\"time\":\"" + TimeStr + "\",\"data\":[" + ax + "," + ay + "," + az +"," + gx +"," + gy + "," + gz + "]}");
  if (debugging == true) { Serial.println(jsonAccGyro);}
  memset(bufff, 0, 512); jsonAccGyro.toCharArray(bufff, 512);
  mqtt.publish("iot-uplink", bufff);
  return;
