Piezo Vibration Sensor - Output Transformation

Hi everyone,

I have a piezo vibration sensor (see: Gravity__Flexible_Piezo_Film_Vibration_Sensor_SKU__SEN0209-DFRobot), which is connected to A1.

I am using the following code to obtain the voltage, which works fine (see picture):

int PiezoPin = A1;

void setup()
{
Serial.begin(9600);
}
void loop()
{

int output = analogRead (PiezoPin);
float freq = (output / 1023.0 *5.0);
Serial.println (freq);
delay(50);

}

My question now is, how I transform these voltages into frequencies. I read many articles about FFT and frequency counters, but I can't make it work. What I need is a permanent display of the frequency.

Does someone have an idea?

You could try the Open Music Labs FFT example code.