triggering a solenoid valve from batteries charged by hydroelectric system
I would suggest using a simple microcontroller do the job. 

For ex: using an 'if' function using two variables as so would help