Simple servo tester pro

//Easy way to test and calibrate your Servo 
//*****************************PROGRAM-TO-TEST-SERVO*********************************************
void setup()
{
  Serial.begin(9600);
  pinMode(9,OUTPUT);
  
}


void loop()
{
  
  
 int AV=analogRead(A0);// read A0 put value in AV use 10k or higher POT can be any analog pin 
  //with + on outter leg and - on other leg center going to A0
  
 analogWrite(9,AV/4);
  // write PWM value to pin 9 divide 1024 by 4 to get 255 values 
  
 Serial.print("PWM= ");
 Serial.println(AV);
  
  delay(15);
}