newbie needing help with piezo sensors.

hi, im working on a project right now with piezo sensors triggering notes for a midi keyboard. Im also wanting to put in a couple 'on/off' switch pads (triggered by pressing the piezo sensors), which i can connect to max/msp to trigger re-verb and delay on and off. Any help on the arduino coding for an on/off trigger to put to max after the sensor has been touched? pretty new to this and any help id much appreciated.