I know there's the knock example code in the Arduino. However, when I connect the vibration sensor to it and run the code, I either always get knock reply (when change nothing of the code) or get now reply (when changing the threshold value or the variable to store the value read from the sensor pin). I didn't even knock the table as I just put it there and knock is detected. When I change the threshold value, no matter how hard I shake it, it won't get any knock reply.
Currently using the following sensor: http://www.dx.com/p/high-sensitivity-al ... 9Ysb-OSz9w
Can anyone help me pls? Thank you!