Stepper Motor Sun Tracker Script Help Needed

hi i have a script that i am working on for a Sun tracker/Light Tracker sensing light through Light Resistant Diodes (think that is what they are called) my problem is that the diodes are putting out different readings andy way her is the scrip that i have so far

#include <SoftwareSerial.h>
#include <Stepper.h>

int LED = 12; //includ a light that is in port 12

const int stepsPerRevolution = 200; // change this to fit the number of steps per revolution for your motor
const int enableA = 6;
const int enableB = 5;

Stepper myStepper(stepsPerRevolution, 4, 7, 3, 2); // initialize the stepper library using the default pins on the HBridge Shield:

void setup() {

  Serial.begin(9600);
  pinMode(LED, OUTPUT);
  pinMode(enableA, OUTPUT);
  pinMode(enableB, OUTPUT);
  myStepper.setSpeed(200);
}
 
 
void loop() {

  int sensorValue1 = analogRead(1); // add a LRD to analogRead (1)
  int sensorValue2 = analogRead(2); // add a LRD to analogRead (2)

  Serial.print(sensorValue1); //print out sensorValue1 reading of the incoming light
  Serial.print("\t");
  Serial.println(sensorValue2); //print out sensorValue2 reading of the incoming light
  Serial.print("\t");
  
  
  if (sensorValue1 > sensorValue2) // if sensorValue1 has more light than sensorValue2 do the below 
  {
  Serial.println("clockwise");
  Serial.print('\t');
  digitalWrite (LED, HIGH);
  digitalWrite(enableA, HIGH);
  digitalWrite(enableB, HIGH);
  myStepper.step(stepsPerRevolution); 
  }
  else
  {
  digitalWrite(enableA, LOW);
  digitalWrite(enableB, LOW);
  digitalWrite (LED, LOW);
  }
  
  
  
    if (sensorValue2 > sensorValue1)  // if sensorValue2 has more light than sensorValue1 do the below 
  {
  Serial.println("counterclockwise");
  Serial.print('\t');
  digitalWrite(enableA, HIGH);
  digitalWrite(enableB, HIGH);
  myStepper.step(-stepsPerRevolution);
  digitalWrite (LED, HIGH);

   
  }
  else
  {
  digitalWrite(enableA, LOW);
  digitalWrite(enableB, LOW);
  digitalWrite (LED, LOW);
  }
  
  
  
  
  delay(500);
}

so how do i make so that if the LRD are in a particular percentage of each other do nothing?

Well how do you get a percentage from anything? Simple, you find its max value and divide the current value by the max. In this case, I just going to guess that the max value you get is 1023.
So you simply take the new value and divide it by 1023, and you should get a certain percentage, base on the amount of light your photodiode is receiving.

So in programming terms:

New_Value = analogRead(sensor_one);
Percent_S1 = New_Value / 1023;
or just simply,

Percent_S1 = analogRead(sensor_one) / 1023;

  // if sensorValue1 has at least 10% more light than sensorValue2 do the below   
  if (sensorValue1 > (sensorValue2 + sensorValue2/10)

  // if sensorValue2 has at least 10% more light than sensorValue1 do the below 
  if (sensorValue2 > (sensorValue1 + sensorValue1/10)

Thanks that helped XD

Light Resistant Diodes

Light Dependent Resistors? (LDR)

Light Dependent Resistors? (LDR)

Yep that is the one