void start()
{
  digitalWrite(2,HIGH);
  digitalWrite(3,LOW);
  delay(200);
  digitalWrite(3,HIGH);
  digitalWrite(2,LOW);
  delay(200);
}

void stop()
{
  digitalWrite(2,LOW);
  digitalWrite(3,LOW);
}

void setup()
{
  Serial.begin(9600);
  pinMode(2,OUTPUT);
  pinMode(3,OUTPUT);
  pinMode(4,INPUT);
  pinMode(5,INPUT);
}

void loop()
{
  if(digitalRead(4)==HIGH)
  {
    delay(500);
    start();
    Serial.println("activated");
  }

  if(digitalRead(5)==HIGH)
  {
    delay(500);
    stop();
    Serial.println("deactivated");
  }
}