Heres a link to the library (Version 4 btw) from arduino
http://playground.arduino.cc/Main/CapacitiveSensorAnd here is a snippet of a sample sketch i used on my uno.
#include <CapacitiveSensor.h>
CapacitiveSensor moveSensor = CapacitiveSensor(3,5);
CapacitiveSensor touchSensor = CapacitiveSensor(8,10);
const int irrelevant = 100;
void setup() {
}
void loop() {
long moveValue = moveSensor.capacitiveSensor(30);
if (moveValue > irrelevant) {
blah blah blah
}
long touchValue = touchSensor.capacitiveSensor(30);
if (touchValue > irrelevant) {
blah blah blah
}
}