capacitive sensor demo code