Best and low cost for light (lux) detection

Hello I am looking for a device to replace my 2016 Aquara RTCGQ11LM.
Thank you for your advice
My goal is to automate the opening of exterior lights when the sky darkens and also interior lights in certain rooms.

DIY? Outdoor Lux Sensor

Interesting, I’ll take a look at the configuration and recommendations. Thanks