Digital imput via arduino to processing

Now I changed coments

 pinMode(switchPin, INPUT);  // Set pin 0 as an input

Ok, right.