diff --git a/mqtt/tempSensor.py b/mqtt/tempSensor.py index 8b15cbf..060755c 100644 --- a/mqtt/tempSensor.py +++ b/mqtt/tempSensor.py @@ -52,10 +52,11 @@ def getValues(sensor): temp = round(temp, 2) #print("Temperature: {}*F Humidity: {}% ".format(temp, humidity)) result = 1 + return temp, humidity except RuntimeError as error: print(error.args[0]) time.sleep(2.0) - return temp, humidity + def publish(client, temp, humidity):