How can I read the light sensor of my phone using python?

Viewed 19

I'm trying to make an experiment. I want to use python to read the light sensor of my phone and then to adjust the screen bright based on the results of the reading. Like, if the light sensor is registering a lot of light, the screen bright increase, if it is registering a low level of light, the screen bright goes down. I'm using QPython 3L app and coding directly on my phone. I know that the android module can be imported to control the bright, but what about the light sensor? How to collect its data?

0 Answers
Related