// pin 10 drives the buzzer
#define buzzer  10

#define OK_PIN  A0 //
#define ERROR_PIN  A1  //











void setup() {
// Initialize LED 13 to be off
pinMode(LED_BUILTIN, OUTPUT);
digitalWrite(LED_BUILTIN, LOW);

// buzzer setup
pinMode(buzzer, OUTPUT);

// INPUT PIN  setup
pinMode(ERROR_PIN, INPUT_PULLUP);
pinMode(OK_PIN, INPUT_PULLUP);

}


void loop() {

  if (digitalRead(OK_PIN) == LOW) {  
    tone (buzzer, 125, 100);
    delay(150);
    tone (buzzer, 125, 100);

     delay(500);
  }

  if (digitalRead(ERROR_PIN) == LOW) {


    tone(buzzer,1480,200);
    delay(100);
    tone(buzzer,1568,200);
    delay(100);
    tone(buzzer,2000,200);






  }


}