#include <Servo.h>
Servo servoku;
int pot= A0;
int nilaipot= 0;
void setup() {
// put your setup code here, to run once:
servoku.attach(3);
}
void loop() {
// put your main code here, to run repeatedly:
nilaipot= analogRead(pot);
nilaipot= map(nilaipot, 0, 1023, 10, 180);
servoku.write(nilaipot);
}