I'm trying to conect a piezo to A/D but the piezo generate high voltage for the MCU. So I used a 5v zener to cut the high voltage spikes, a diode to rectify the signal, a resistor to pull-down the A/D and a capacitor to reduce the ripple. If you found a better solution please leave it in the comments below. Thanks!