int buz = 10;
String msg = "Enter the number between 1-10 \n";
void setup()
{
Serial.begin(9600);
delay(1000);
}
void loop()
{
tone(buz, 26, 5000); // 26 is the frequqncy and for 500 second
//to use buz tone(pinNumber, frequency , for time)
//or
// tone(buzzerPin, frequency); // Generate a tone with the specified frequency
// delay(300); // Keep the buzzer on for 300ms (adjustable)
// noTone(buzzerPin);
}