Automatically switch Android's dark mode using ambient light sensor
howtogeek.com