Problem with relay and pump.

Wow that is a mess! It is very hard to follow.

Do you have a resistor in line with the LED?

As I said before 100K is way too high for R2, change it to 10K. It looks like this input is floating and is being influenced by the pin next to it.