change light sensor value handling
This commit is contained in:
parent
1ef5ba20c8
commit
043241eae1
|
@ -44,7 +44,7 @@ class sensors:
|
|||
return self.__humidity
|
||||
|
||||
def __light_sensor_callback(self, data):
|
||||
self.__brightness = data[2]
|
||||
self.__brightness = (4096-float(data[2]))/4096*100
|
||||
|
||||
def __dht22_callback(self, data):
|
||||
humidity = data[3]
|
||||
|
|
Loading…
Reference in New Issue