diff --git a/lib/py_edge_device/carlos/edge/device/io/_dhtxx.py b/lib/py_edge_device/carlos/edge/device/io/_dhtxx.py index c50890d2..e3b1ffce 100644 --- a/lib/py_edge_device/carlos/edge/device/io/_dhtxx.py +++ b/lib/py_edge_device/carlos/edge/device/io/_dhtxx.py @@ -109,7 +109,7 @@ def read(self) -> tuple[float, float]: humidity = float(int(data[0:16], 2) * 0.1) temperature = float(int(data[17:32], 2) * 0.2 * (0.5 - int(data[16], 2))) - return humidity, temperature + return temperature, humidity class DHTXX(AnalogInput, ABC):