hi im new with arduino and my current project is to light a LED with sound detector. im using a digital sound detector and arduino uno.
this is my code
Serial.println(“no sound detected”);
counter = 0;
but i want the LED to light up after it triggers a 3 “sound detected” notice on serial monitor. like this on on the attachment
can somebody please help me. i think it is a counter but i don’t know how to do that on my code. thanks in advance