#include CapacitiveSensor Sensor = CapacitiveSensor(7,5); //7 is charge pin. 5 is sense pin. void setup() { Serial.begin(9600); } void loop() { long sensorValue = Sensor.capacitiveSensor(1000); //Change the number of samples to get the required timing and sensitivity. //delay(10); Serial.println(sensorValue); }