#include <Servo.h>
Servo servo;
int dialpin = A5;
int dialval = 0;
void setup() {
// put your setup code here, to run once:
servo.attach(13);
}
void loop() {
// put your main code here, to run repeatedly:
dialval = analogRead(dialpin);
dialval = map(dialval, 0, 1023,0,180);
servo.write(dialval);
delay(30);
}