Tracking # of times the buzzer beeps

Hi! For my project, I am making a social distancing sensor. One thing I would like to add to my project is counting internally the number of times the sensor beeps. Is there a way to code this into Arduino IDE? This is the link of the sensor that I made: Arduino Project Hub

Thanks!

Yes, there is a way.
More than one, most likely.

That's different code to code on your other thread on this topic, but it's equally naïve, and because the author asked you not to copy their code, your code will be different.

But we can't see your code.

TheMemberFormerlyKnownAsAWOL:
Yes, there is a way.
More than one, most likely.

That's different code to code on your other thread on this topic, but it's equally naïve, and because the author asked you not to copy their code, your code will be different.

But we can't see your code.

Hi! I didn't copy either of the codes directly. I changed both of them up and took bits and pieces from each. Could you let me know just the base/foundation for tracking internally?

Sure, take a look at the state change example in the IDE

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.