int beep=5;
void setup()
{
pinMode(beep, OUTPUT); //pin controls the speaker
}
void loop()
{
digitalWrite(beep, HIGH); //turn on the speaker
//tone(8, 262, 1000); // put your main code here, to run repeatedly:
delay(2000); //wait for 1000 milliseconds (sound and light)
digitalWrite(beep, LOW); //turn off the speaker
}