Create Touch Sensors with a single analog pin without external hardware
This library uses the internal wiring of microcontrollers to measure capacitance much as described here and is based on

Author: Alexander Pruss

Maintainer: arpruss

Read the documentation


This library is compatible with the STM32F1, STM32F2, STM32F3, STM32F4, avr, STM32 architectures so you should be able to use it on the following Arduino boards:

Compatibility Note

Note: while the library is supposed to compile correctly on these architectures, it might require specific hardware features that may be available only on some boards.


To use this library, open the Library Manager in the Arduino IDE and install it from there.