// Name: Rajaram Parida
// Redg: 2241016203
// Section: 2241028
// Date: 10/11/2025
// Experiment: 06
// Objective: 1.4
#include <Servo.h>
Servo myServo;
int potPin = A0;
int potValue;
int angle;
void setup() {
myServo.attach(2);
}
void loop() {
potValue = analogRead(potPin);
angle = map(potValue, 0, 1023, 0, 180);
myServo.write(angle);
delay(15);
}