#include <Servo.h>
Servo PlyServo;
void setup() {
Serial.begin(9600);
PlyServo.attach(3);
PlyServo.write(90);
}
void loop() {
int Val = analogRead(A0);
int MapVal = map(Val, 0, 1023, 0, 180);
PlyServo.write(MapVal);
delay(10);
}