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

  int x;
  sensor_bus.reset();
  sensor_bus.select(address);
  sensor_bus.write(0x44,1);
  
  sensor_bus.reset();
  sensor_bus.select(address);
  sensor_bus.write(0xBE,1);
  
  for(x=0;x<9;x++)
    data[x] = sensor_bus.read();
    
  int tr = data[0];
  if(data[1] > 0x80) {
   tr = !tr+1;
   tr = tr*-1;
  }
  int cpc = data[7];
  int cr = data[6];
  
  tr = tr>>1;
  
  float temperature = tr - (float)0.25+(cpc-cr)/(float)cpc;
 
  return temperature;
}

  //   return;
  // }

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

