From a6e16ab212b1fd6a5c4fe63b0b8e3c00bbcd5056 Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Fri, 9 Dec 2022 10:45:59 +0700 Subject: [PATCH] Update kuukar_sensors.py --- kuukar/kuukar_sensors.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kuukar/kuukar_sensors.py b/kuukar/kuukar_sensors.py index 4a059ae..ad163ce 100644 --- a/kuukar/kuukar_sensors.py +++ b/kuukar/kuukar_sensors.py @@ -34,7 +34,7 @@ class sensors: self.__brightness = (4096-float(data[2]))/4096*100 def __dht22_callback(self, data): - humidity = data[3] - temperature = data[4] + humidity = data[2] + temperature = data[3] self.__humidity = humidity self.__temperature = temperature