Automated water softener using an arduino, a relay, and code