Added Fritzing schematic of piezo sensor with two clamping diodes and a trimmer attached to an analog comparator.