A simple but smart lighting controler for Arduino-based hardware