#include <Servo.h>
#define poten A3
Servo myservo;
int potValue ,C ;
void setup() {
myservo.attach(3);
}
void loop() {
potValue = analogRead(poten);
C = map(potValue,0,1023,0,180);
myservo.write(C);
delay(15);
}