Simple Arduino classes to simplify writing functionality for home automation