     Serial.print("\":");
     Serial.print(get_temperature(sensors_address[x]));
 
-    if x < num_ds18 - 1:
+    if (x < num_ds18 - 1) {
       Serial.print(",");
+    }
   }
 
   Serial.print('}');

}

void loop() {
  Serial.print("{");
  read_voltages();
  Serial.print(",");
  read_temperature();
  Serial.println("}");

  // Blink lights
  blink_led();

  //   return;
  // }

  Serial.print("\"temp\":{");
  Serial.print("\"h\":"); Serial.print(h); Serial.print(',');
  Serial.print("\"c\":"); Serial.print(c); Serial.print(',');

