A simple home automation system for controlling lighting