Press button 1 = motor clockwise, press button 2 = motor anti-clockwise

Paul_KD7HB:
The main part left out of you program is failure to actually READ the pin in to the constant you are checking.

Paul

Ok, i amended the code but still no luck. I think I interpreted your advice correctly?

// loop
void loop() {
  digitalRead(RaiseButton);
  digitalRead(LowerButton);
  if (RaiseButton == HIGH) {//If the raise button is pressed,
    digitalWrite(enablePin, HIGH); //then turn the motor on
    digitalWrite(ClockwisePin, HIGH); //clockwise
    digitalWrite(AntiClockPin, LOW);
  }
  
  if (LowerButton == HIGH) { //if the lower button is pressed
    digitalWrite(enablePin, HIGH); //then turn the motor on
    digitalWrite(ClockwisePin, LOW); //anticlockwise
    digitalWrite(AntiClockPin, HIGH);
  }
}
//end of loop