Thanks Mr.johnwasser
After making the following changes, pumpin still always remaining ON
// If all three buttons are HIGH and pump is running
if (buttonState1 && buttonState2 && buttonState3 && !pumppinstatus) { <<<< YOU CHANGED THIS LINE. Change it back
// Turn the pump off
pumppinstatus = LOW;
digitalWrite(pumppin, LOW);
EEPROM.write(memposL1, LOW);
}
// If all three buttons are LOW and pump is not running
if (!buttonState1 && !buttonState2 && !buttonState3 && !pumppinstatus) {
// Turn the pump on
pumppinstatus = HIGH;
digitalWrite(pumppin, HIGH);
EEPROM.write(memposL1, HIGH);
}
delay(100);
}