#include <Servo.h>
Servo thisServo;
void setup() {
Serial.begin(9600);
thisServo.attach(10);
thisServo.write(180);
int vr = analogRead(A1);
int vrmap = map(vr,0,1023,0,200);
}
void loop() {
int vr = analogRead(A1);
int vrmap = map(vr,0,1023,0,180);
thisServo.attach(10);
thisServo.write(vrmap);
Serial.println(vrmap);
}