Updated capacitive sensor example