I have one question about this project. How the piezo element responds to 5 kHz frequency waves ? We know that this project have:
// variables for the high and low limits of the knock value
const int quietKnock = 30;
const int loudKnock = 100;
So... how can we know how much we need kHz to reach like this 30 - 100 value ?