const int buttonPin = A0;
const int buzzerPin = 12;
int buttonState = 0;
void setup() {
pinMode(buttonPin, INPUT);
pinMode(buzzerPin, OUTPUT);
}
void loop() {
if (buttonState == LOW) {
digitalWrite(digitalRead(buttonPin), LOW);
} else {
digitalWrite(buzzerPin, HIGH);
}
delay(50);
}