Built-in capacitive GPIOs in several ESP32 models let projects use a finger, wire or concealed foil pad as a touch control without extra buttons.
Several ESP32 boards include touch-sensitive GPIOs, allowing builders to add touch controls without a separate sensor, button or switch. The original ESP32, ESP32-S2, ESP32-S3 and ESP32-P4 support the feature, although their pin layouts and behavior differ.
The original ESP32 has 10 touch channels, while the ESP32-S2 and ESP32-S3 have 14 capacitive pins. The ESP32-P4 also has 14 channels, mapped to GPIOs 2 through 15 rather than 1 through 14. The S2 and S3 add proximity sensing and improved water resistance, while the P4 adds frequency hopping to reduce ghost touches and reject electrical noise.
On an ESP32-S3, idle readings are typically around 15,000–30,000, while touching a pin can raise them by roughly 3x to 20x. A trigger threshold around 1.5x to 2x the untouched baseline can be used after calibration, but readings vary by board: the original ESP32 drops when touched, whereas the S2 and S3 increase.
The touch input can wake an ESP32-S3 from deep sleep, trigger a Windows shortcut, enter text, control an ESPHome smart-home dashboard or operate a conductive object. A 3D-printed enclosure can hide copper tape or foil beneath its surface, though the material thickness must be tested because it affects sensitivity.