From 4398da4a630cd09b019f658ef70c7781dd1a7ad5 Mon Sep 17 00:00:00 2001 From: robert Date: Thu, 18 Feb 2021 10:18:32 +0100 Subject: [PATCH] fix typo --- mqtt_publish_temp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mqtt_publish_temp.py b/mqtt_publish_temp.py index 44792a0..a54432b 100644 --- a/mqtt_publish_temp.py +++ b/mqtt_publish_temp.py @@ -48,13 +48,13 @@ _, temperature = Adafruit_DHT.read_retry(DHT_SENSOR, DHT_PIN) temperature = round(float(temperature),2) -print("temperature after round: " + str(temperature) +print("temperature after round: " + str(temperature)) # Get Humidity from DHT humidity, _ = Adafruit_DHT.read_retry(DHT_SENSOR, DHT_PIN) humidity = round(float(humidity),2) -print("humidity after round: " + str(humidity) +print("humidity after round: " + str(humidity)) # Publish our data client.publish(temperature_topic, temperature) client.publish(humidity_topic, humidity)