//define Pins
#include <Servo.h>
Servo servo;
int trigPin = 11;
int echoPin = 12;
// defines variabels
long duration;
int distance;
void setup() {
servo.attach(13);
servo.write(180);
delay(2000);
//Sets the trigPin as an Output
pinMode(trigPin, OUTPUT);
//Sets the echoPin as an Input
pinMode(echoPin, INPUT);
}