#include <Servo.h>
int servoPin1 = 3;
Servo servo1;

void setup() 
{
  Serial.begin(9600); 
servo1.attach(servoPin1);
}

void loop()
 {
 int potentionalmeter = analogRead(A0);
 Serial.println(potentionalmeter);
 delay(500);


{
  servo1.write(0);
  delay(2000);

   servo1.write(90);
  delay(2000);

   servo1.write(180);
  delay(2000);



}
 }