Arduino sketch to convert piezo sensor data to midi CC and Note messages. You need the MIDIUSB library and an Arduino that supports it, like micro or Leonardo. For each piezo you need an 1M resistor and a 5.1v zener diode is recommended.
Here's my messy prototype, with screw terminals connections (already successfully used live on a drumkit):
--->get it on github<---