Help Sensor Light

Hello, Searched in the community did not find anything, how do I use the light sensor component would like when the location around the phone is dark changes the background color of the application to black

Did You try ?

1 Like

Yes, to no avail

Tested in places with lux variations?

Yes :frowning:

I haven’t tried the light sensor yet but you can get illuminance level under the Light Changed event(block in the @Rogerio_Rios’s reply) and compare that illuminance value with some predefined value(sample chart below) using the blocks in Math section under the blocks section.
Some illuminance levels and their comparison with corresponding lighting conditions :point_down:

Image source:- illuminance - Wikipedia article

2 Likes

I think that not. :neutral_face: