This is intended to be a modified version of the original work made by @Here-Be-Dragons Familylamp (https://github.com/Here-Be-Dragons/familamp). All credits go to him.
Started project from: https://community.particle.io/t/captouch-long-short-touch-detecting/44180/4
Soon I will update this section with the main differences and changes.