//telling time using the resistor and servo
#include <Servo.h>
int resistor=A3;
int servo =5;
float rr;
float calculation ;
Servo myservo;
void setup() {
myservo. attach(servo);
pinMode(servo, OUTPUT);
pinMode(resistor, INPUT);
Serial.begin(9600);
// put your setup code here, to run once:
}
void loop() {
rr= analogRead(A3);
Serial.println(rr);
calculation= -(180./1015.-8.)*(rr-8.);
Serial.println(calculation);
myservo.write(calculation);
// put your main code here, to run repeatedly:
delay (1000);
}
//slight error