Use Millis() to time the knocks, though I think you want to measure the time between knocks, not the knocks themselves. When is the homework due?
Use Millis() to time the knocks, though I think you want to measure the time between knocks, not the knocks themselves. When is the homework due?