Touch Sensor and Servo

My bad, I wasw in a hurry earlier and didn't notice that these lines:

  Servo.Write(servoPin, 1);
}
else{
  Servo.Write(servoPin, 0);
}

.... should look like this one:

servoMotor.write(servoAngle);

I did this and still give me an error...."no motching function for call to 'Servo::write(int&,int)'

servoMotor .write(servoPin, 1);
}
else{
servoMotor .write(servoPin, 0);
}

servoMotor.write(servoAngle);
}

You don't give a pin number and a digital value in a servo write, just the angle. Compare the last two lines there: last one is correct.

no motching function for call to 'Servo::write(int&,int)'

You need to pay attention to what the error message actually says.

Yes i am learning a lot today....I am learning what the errors means

the code runs now but it still don't do anything... the touch sensor it used to work on my very first code but not any more

lastButtonState = buttonState;

if(buttonPushCounter % 2==0){

servoMotor .write(180);
}
else{
servoMotor .write(0);
}

servoMotor.write(servoAngle);
}

Looks to me you have a space here after the "r" of "motor" before the "."; I don't know if it would make a difference.

servoMotor .write(180);

Why do you have this one at the end after the other two:

servoMotor.write(servoAngle);

Yes it did had a space but it didn't make any difference. ANd i commented out the last line too, and still no change.

Looks to me you have a space here after the "r" of "motor" before the "."; I don't know if it would make a difference

It wouldn't.

OP, we need to see your code.