Arduino Piezo Trigger

March 03, 2021

void setup() {
  Serial.begin(9600);
}

void loop() {
  if (analogRead(A0) > 0) {
    Serial.println(analogRead(A0));
  }
  delay(5);
}

Search