Update kuukar_sensors.py

This commit is contained in:
Siwat Sirichai 2022-12-09 10:45:59 +07:00
parent beb17ff93a
commit a6e16ab212
1 changed files with 2 additions and 2 deletions

View File

@ -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