peizo knock Example

but I am unable to get it to work.

You'll need to explain what that means... what's happening that should not happen, what's not happening that should?

Is your sketch compiling but not working properly, or not compiling in the first place... if it's not compiling what are the compile messages?

Post your code and a schematic... not the code and schematic as suggested in the tutorial, but the code you typed in and the schematic as built.