#define pump1 13
#define pump2 12
#define pump3 11

#define sw1 A0
#define sw2 A1
#define sw3 A2

void setup() {
  // put your setup code here, to run once:
  pinMode(pump1,OUTPUT);
  pinMode(pump2,OUTPUT);
  pinMode(pump3,OUTPUT);

  pinMode(sw1, INPUT_PULLUP);
  pinMode(sw2, INPUT_PULLUP);
  pinMode(sw3, INPUT_PULLUP);

}

void loop() {
  // put your main code here, to run repeatedly:
  if(digitalRead(sw1) == 0) outPattern1();
  if(digitalRead(sw2) == 0) outPattern2();
  if(digitalRead(sw3) == 0) outPattern3();
  delay(10);
}

void outPattern1(){
  digitalWrite(pump1,HIGH);
  delay(2000);
  digitalWrite(pump1,LOW);

  digitalWrite(pump2,HIGH);
  delay(3000);
  digitalWrite(pump2,LOW);

  digitalWrite(pump3,HIGH);
  delay(2500);
  digitalWrite(pump3,LOW);
}

void outPattern2(){
  digitalWrite(pump1,HIGH);
  delay(5000);
  digitalWrite(pump1,LOW);
}

void outPattern3(){
  digitalWrite(pump2,HIGH);
  delay(3000);
  digitalWrite(pump2,LOW);

}
NOCOMNCVCCGNDINLED1PWRRelay Module
NOCOMNCVCCGNDINLED1PWRRelay Module
NOCOMNCVCCGNDINLED1PWRRelay Module