thank you MikMo,
i found a code for triggering drum sounds with midi by hitting switches and piezos. i tried to modify the code for my needs.
i changed switches for my sensors / it is all about on and off, right? do you think this will work?
i will try this evening.
miksen