wvmarle:
A Schmitt trigger is a piece of hardware. Actually it may be unnecessary to add one, as the Arduino's pins supposedly are Schmitt triggers as well.
I am hesitant about using microphone. If the surrounding is noisy - alright I could use bandpass filter but still..