Only solution is, use the proper sprinkler controller w/ a outdoor enclosure* or move it indoors like it should be.No need to use duct tape and silly putty fixes.

* There is housings made to mount controller in even has a receptacle installed in it,cant say if it has a UL or other label on it...