From 043241eae1bc8923d57face828627a8904612f88 Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Thu, 10 Nov 2022 22:32:59 +0700 Subject: [PATCH] change light sensor value handling --- kuukar/kuukar_sensors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kuukar/kuukar_sensors.py b/kuukar/kuukar_sensors.py index 8b81d36..03fff7a 100644 --- a/kuukar/kuukar_sensors.py +++ b/kuukar/kuukar_sensors.py @@ -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]