Code completely rewritten. The new CapacitiveSensorDue library is an alternative library which is compatible with Arduino Due.
Merge pull request #1 from Liarco/master

Importing new Arduino Due compatible library contributed by Marco Lipparini