Create function
This commit is contained in:
@@ -22,4 +22,6 @@ def getValues(sensor):
|
|||||||
except Exception as error:
|
except Exception as error:
|
||||||
sensor.exit()
|
sensor.exit()
|
||||||
raise error
|
raise error
|
||||||
return temp, humidity
|
return temp, humidity
|
||||||
|
|
||||||
|
getValues()
|
||||||
Reference in New Issue
Block a user