diff --git a/mqtt_publish_temp.py b/mqtt_publish_temp.py index 2593d7f..7a2ac6c 100644 --- a/mqtt_publish_temp.py +++ b/mqtt_publish_temp.py @@ -56,11 +56,11 @@ while True: t_split[1] = t_split[1][:-t_cut] temperature = t_split[0] + "." + t_split[1] - print("temperature after cut: " + temperature) + print("temperature after cut: " + str(temperature)) # Get Humidity from DHT humidity, _ = Adafruit_DHT.read_retry(DHT_SENSOR, DHT_PIN) - print("humidity before cut: " + humidity) + print("humidity before cut: " + str(humidity)) # cut humidity to xx.xx if more then tow digits after "." h_split = humidity.split(".") if len(h_split[1]) > 2: