diff --git a/pi/laboration 2/temperature/temperature.py b/pi/laboration 2/temperature/temperature.py index 062e79a6f861cd8ab79fadc0dc628ad39bae5a25..d17747dda6343f11dec6bbe9cb8af0bf8c9161c1 100644 --- a/pi/laboration 2/temperature/temperature.py +++ b/pi/laboration 2/temperature/temperature.py @@ -106,7 +106,7 @@ def readMeasurements(): # variable and store them in the global variables for # temperature and humidity. Tip cast the extracted values # to float. - temperature = float(data[0].decode('UTF-8')[:5]) + temperature = float(data[0].decode('UTF-8')[:6]) humidity = float(data[0].decode('UTF-8')[6:]) # Sending measurements to the server.