Best control structure for task of aligning motor with sensor

Allan, I think I may have done a poor job of communicating what I have tried; the reason I added the detection in the move function was to know when to stop the motor. That does not work, as you surmised. I'll post the loop code that calls the move functions, as I should have done in the first place.

void loop ()
{
   sensorValue_leftPCell = analogRead(leftPCell);
   sensorValue_rightPCell = analogRead(rightPCell);
      differenceLR = (sensorValue_rightPCell)-(sensorValue_leftPCell);

      if(differenceLR <=(MAX_DELTA))
        {
          delay(READING_DELAY);
        }
      if(differenceLR >= (MIN_DELTA))
        {
          delay(READING_DELAY);
        }
      if(differenceLR > (MAX_DELTA))
        {
          delay(READING_DELAY);
          digitalWrite(EQUALIZED_LED, LOW);
          //Serial.println(differenceLR);
          //Serial.println("rotateCCW");
          rotateCCW();
        }
    if(differenceLR < (MIN_DELTA))
        {
          delay(READING_DELAY);
          digitalWrite(EQUALIZED_LED, LOW);
          //Serial.println("rotateCW");
          rotateCW();
        }


    sensorValue_topPCell = analogRead(topPCell);
    sensorValue_bottomPCell = analogRead(bottomPCell);
    
    differenceTB = (sensorValue_topPCell)-(sensorValue_bottomPCell);
  
  
    if(differenceTB <=(MAX_DELTA))
      {
       delay(READING_DELAY);
      }
    if(differenceTB >= (MIN_DELTA))
      {
        delay(READING_DELAY);
      }
    if(differenceTB > (MAX_DELTA))
      {
       digitalWrite(EQUALIZED_LED, LOW);
       //Serial.println("tilt up");
      tiltUp();
    }
    if(differenceTB < (MIN_DELTA))
    {
      digitalWrite(EQUALIZED_LED, LOW);
      //Serial.println("tilt down");
      tiltDown();
    }
}

I guess what I was trying so poorly to communicate is: what is a good way to stop the motors when the desired position is achieved? I do plan to simplify this cumbersome loop down to 3 sensors, but the motor thing is what I am focused on now. I added serial.print commands to check the calls from the loop, and it worked perfectly, as near as I could tell, BTW.
Also, thanks a lot for your replies and patience. I always thought of myself as reasonably clever, but this stuff is either harder than it looks, or I am not as clever as I thought, LOL.