int buzzerPin = 3; //Declares the value of buzzerPin to be 7
void setup()
{
pinMode(buzzerPin, OUTPUT); // Initialise the buzzerPin as an output.
}
void loop()
{
// Play a tone with the buzzer. frequency 600, duration 30ms then delay 150ms.
tone(buzzerPin, 600, 30);
delay(150);
}