:+1: that it works as planned!
Could you look up the brand and type of the ambient light sensor in your phone, for my curiosity?