ir lightbarrier gives no analog value

Hello,

I have a light barrier and it gives no value in the serial monitor.
The light barrier have to detect a ribbon cable.
But the ribbon cable let less light through itself.
How could i get any values on the serial monitor?

This is my arduino code.

const int

PWM_A = 3,
DIR_A = 2,
PWM_B = 9,
DIR_B = 8,
BRAKE_A = 0,
SNS_A = A1;

int sensor_1 = 0;
int sensor1pin = A0;
int d = 2000; // snelheid regelen met delay
int stepLengthinMm = 1;
const int stepsPerRevolution = 200;

void setup() {

pinMode(BRAKE_A, OUTPUT);
pinMode(DIR_A, OUTPUT);
pinMode(DIR_B, OUTPUT);
pinMode(PWM_A, OUTPUT);
pinMode(PWM_B, OUTPUT);
pinMode(sensor1pin, INPUT);

Serial.begin(9600);

}

void loop() {

// Als er bandkabel gedetecteerd wordt mag hij doorgaan met het doorlopen van case 1.
if(sensor_1>200){
sensor_1 = analogRead (sensor1pin);
Serial.println (sensor_1);

}

else{}

if(stepLengthinMm>100);
else(delay(5));

digitalWrite(DIR_A, LOW);
digitalWrite(PWM_A, HIGH);
digitalWrite(DIR_B, HIGH);
digitalWrite(PWM_B, HIGH);

delay(d);

digitalWrite(DIR_A, LOW);
digitalWrite(PWM_A, HIGH);
digitalWrite(DIR_B, LOW);
digitalWrite(PWM_B, HIGH);

delay(d);

digitalWrite(DIR_A, HIGH);
digitalWrite(PWM_A, HIGH);
digitalWrite(DIR_B, LOW);
digitalWrite(PWM_B, HIGH);

delay(d);

digitalWrite(DIR_A, HIGH);
digitalWrite(PWM_A, HIGH);
digitalWrite(DIR_B, HIGH);
digitalWrite (PWM_B, HIGH);

delay(d);

stepLengthinMm++;

If i upload the programm in my Arduino the stepper motor will rotate equilly.
How could i programm that the stepper motor rotate if i detect the ribbon cable?

Please help me with my intership project.

Start again and tell us what you are talking about, with part numbers, datasheets, code tags, circuit diagrams.
Your vague words mean almost nothing to me - what is a "light barrier"? what ribbon cable? what stepper
motor? There is zero context to make sense of this, so start again after reading the instructions for
how to post on this forum.

Looks like a continuation of this thread.