#include <Arduino.h>
#include <string.h>
int ButtonVal = 0;
int button = A0;
int buzz = 12;
void setup() {
// put your setup code here, to run once:
pinMode (button, INPUT);
pinMode (buzz, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
ButtonVal = digitalRead (button);
if (ButtonVal != 0) {
digitalWrite(buzz, HIGH);
}
else {
digitalWrite(buzz, LOW);
}
}