How long are your piezo wires.
A very high impedance circuit like that easily picks up noise/hum.
Using the internal Aref makes the piezo 5x more sensitive, but that also goes for the hum pickup.
If you have to use longer than 5-10cm wires, use shielded (audio) wire.
Very long wire could reduce piezo sensitivity.
Leo..
Wawa:
This could have been solved in a few posts if you had added the code and real picture of the setup.
See the forum rules.
Leo..
I did add a drawing,
And the details i added needed no code for understanding.... or maybe i am wrong...
I think it was only an hardware issue..
Anyway, problem solved.
I used an external adc (ads1115), that alone did not help with the noise, i then used
An analog differential read between two inputs, so instead of connecting the piezo to ground and an input i connected it to a0 and a1 of the external adc, and then my actual read would be the difference between a0 and a1.
If anyone is interested in more details, just pm me.