Using the touchRead function with an ESP32, I've found issues with noise / 'glitching' that can cause issues. I wrote a little example that shows how to de-glitch the signal and posted it on GitHub: GitHub - digamesystems/esp32_capacitive_touch_test: Experimenting with the Capacitive Touch Inputs on the ESP32
Hope this helps.
Regards,
John