@itbeyond Hi David, thanks for the code. I have an issue with the transformer as it get very hot, and am trying to use the same arduino to control another relay to turn on the tranformer before irrigation and turn the relay off after finishing the irrigation. Please, will appreciate your help pointing out what changes to the code are needed. I was trying to use an analogic pin as digital but am having unexpected results...
pinout(A0, OUTPUT);
digitalWrite(A0, HIGH);
Thanks for any help.