Update: It seems like it has nothing to do with the analog pins. I found out that the touch Display is constantly triggering the pumps. However it seems strange to me because it worked just fine with the digital pin.