// int INT0 = 2;
// int INT0 = 0;
// int LED1 = 3;
// int LED2 = 4;
// int speaker = 5;

void setup(){
  pinMode(2, INPUT);
  pinMode(3, OUTPUT);
  pinMode(4, OUTPUT);
  pinMode(5, OUTPUT);
}

void loop(){

if (digitalRead(2) == LOW) {
  tone(5, 1600);
  delay(1000);
  digitalWrite(3, HIGH);
  digitalWrite(4, LOW);
  digitalWrite(5, HIGH);
  delay(1000);
  tone(12, 1600);
  delay(1);
  digitalWrite(3, LOW);
  digitalWrite(4, HIGH);
  delay(1000);
}

else {
  digitalWrite(3, LOW);
  digitalWrite(4, HIGH);
  digitalWrite(5, LOW);
  delay(100);
  digitalWrite(3, HIGH);
  digitalWrite(4, LOW);
  digitalWrite(5, LOW);
  delay(100);
}
}