Tutorial | Using a Touch Sensor [external link]

...and if you're not getting paid by the LOC

const byte touchPin = 9;
const byte ledPin = LED_BUILTIN;

void setup() 
{
   pinMode ( ledPin, OUTPUT );
   pinMode ( touchPin, INPUT );
}
void loop() 
{
  digitalWrite ( ledPin, digitalRead (touchPin) );
}