I have been research on the internet for automation DIY. I found this one beauty. it is called Billies Hydroponics Controller.
It is an arduino based program in DIY format. The code is dated by four years so a few updates for the code are required, depending on your needs.
here is the youtube...