Update kuukar_sensors.py
This commit is contained in:
parent
beb17ff93a
commit
a6e16ab212
|
@ -34,7 +34,7 @@ class sensors:
|
||||||
self.__brightness = (4096-float(data[2]))/4096*100
|
self.__brightness = (4096-float(data[2]))/4096*100
|
||||||
|
|
||||||
def __dht22_callback(self, data):
|
def __dht22_callback(self, data):
|
||||||
humidity = data[3]
|
humidity = data[2]
|
||||||
temperature = data[4]
|
temperature = data[3]
|
||||||
self.__humidity = humidity
|
self.__humidity = humidity
|
||||||
self.__temperature = temperature
|
self.__temperature = temperature
|
||||||
|
|
Loading…
Reference in New Issue