int buzzer = 11;
int led = 8;

void setup() {
  // put your setup code here, to run once:
pinMode(buzzer,OUTPUT);
pinMode(led,OUTPUT);
}

void loop() {
  // put your main code here, to run repeatedly:
tone(buzzer,1000);
digitalWrite(led,HIGH);
delay(1000);
noTone(buzzer);
digitalWrite(led,LOW);
delay(1000);
}