//Include the servo motor library
#include < Servo.h >
//Define the LDR sensor pins
#define LDR1 A0
#define LDR2 A1
//Define the error value. You can change it as you like
#define error 10
//Starting point of the servo motor
int Spoint = 90;
//Create an object for the servo motor
Servo servo;
void setup()
{
//Include servo motor PWM pin
servo.attach(11);
//Set the starting point of the servo
servo.write(Spoint);
delay(1000);
}
void loop()