Inserting sound from Microphone and Outputing it through Piezzo

Hey, guys I'm working on a project which receives a sound from the microphone and then plays the same thing through a piezzo. I'm using a ZERO board to do this, but I'm having troubles making the piezzo play the frequencies. Is there anyone that can help?

It seems to me you are using the Arduino as a simple piece of wire.

A piezoelectric sensor is not a speaker it will not reproduce everything you throw at it, it has resonances, use the correct part. It is like saying my dog can walk on its back legs but it doesn’t walk very straight.