Capacitive Sensor with ESP8266

good morning at all,
I used succesfully the library "CapacitiveSensor04" and others, with some different Arduino boards.

Now I would need to use the same with an ESP8266 but the libraries used aren't compatible.

Could someone help me please? I really need to use one Capacitice Sensor (touch)with an ESP8266-12.
I'm not able to write myself a library and I havent found sometingh properly.

Thanks in advance.
claudio