Smart Controllers for Irrigation Systems