Water plant help

Now you formatted it, it's clear that the point where you switch off the pumps at exactly 50 humidity are outside the if (manual==false) block. That's probably your problem.

I hope you realise that if humidity rises fast enough and you go from 49 to 51 you won't ever switch it off... not a good idea if you're in automatic mode...