How to use a Buzzer and a Flex Sensor

http://www.olimex.cl/images/10264-01.jpg

The buzzer is the Piezo Element

I need the code to a buzzer that would make a sound when the flex sensor flexes.