I just updated my FastTouch library (https://github.com/adrianfreed/FastTouch) for Teensy 4.0 support. It is a basic library for quickly sensing when
a pin is touched. It may work for your applications that used Capacitive sensing functions on previous Teensy's.