(noob) controlling piezo with potentiometer

Ok. Now we know what you are trying to do, post your code so we can see what needs changing.