old capacitive sensor code
a new once was written, that uses a arduino library for this purpose