DIY automatic light regulator