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
Yes, to no avail
Tested in places with lux variations?
Yes
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
Image source:- illuminance - Wikipedia article
2 Likes
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.