#include <Servo.h>
Servo servo1;
int PB = 13;
int servo = 10;
void setup() {
// put your setup code here, to run once:
servo1.attach(10);
pinMode(PB, INPUT);
}
void loop() {
// put your main code here, to run repeatedly:
if (PB = LOW){
digitalWrite(servo,LOW);
}else if (PB = HIGH){
digitalWrite(servo, HIGH);
}
}