My Arduino restart at one point...

My Arduino Crahed at Row 192
pls Help i dont know what to do…

const int Magnet = 0;
int Sensor = 30;
int Schalter1 = 31;
int Sensor_Fuellstand = 32;
const int Y_Hoch = 1;
const int Y_Runter = 2;
const int X_Vor = 3;
const int X_Zurueck = 4;
const int Zyl_Ausf = 5;
const int Zyl_Einf = 6;
const int LED_R = 7;
const int LED_G = 8;
const int LED_Y = 9;
int val = 0;
int mm;

const int TrigPin1 = 13;
const int EchoPin1 = 12;
float distance1 ;
long dauer1 = 0;
int y = (distance1 / 2);

const int TrigPin2 = 11;
const int EchoPin2 = 10;
float distance2 ;
long dauer2 = 0;
int x = (distance2 / 2);

int a = 0;

void setup() {
pinMode(Magnet, OUTPUT);
pinMode(Sensor, INPUT); //Induktiver Näherrungsschal
pinMode(Sensor_Fuellstand, INPUT); //Microschalter für Füllstandsabfrage
pinMode(Y_Hoch, OUTPUT);
pinMode(Y_Runter, OUTPUT);
pinMode(X_Vor, OUTPUT);
pinMode(X_Zurueck, OUTPUT);
pinMode(LED_R, OUTPUT); //Rot Status fährt in Startposition
pinMode(LED_G, OUTPUT); //Grün am Sortieren
pinMode(LED_Y, OUTPUT); //Gelb bereit zum Starten
pinMode(Schalter1, INPUT); //Zum Starten des Programmes

Serial . begin (9600);
pinMode( TrigPin1, OUTPUT );
pinMode( EchoPin1, INPUT );
Serial . println (y);

Serial . begin (9600);
pinMode( TrigPin2, OUTPUT );
pinMode( EchoPin2, INPUT );
Serial . println (x);

}

void loop() {
digitalWrite(52,HIGH);
digitalWrite(53,HIGH);
Serial . print (“Starting…”);
Serial . println();
delay(1000);

digitalWrite( TrigPin1, LOW );
delayMicroseconds(2);
digitalWrite( TrigPin1, HIGH );
delayMicroseconds(10);
digitalWrite( TrigPin1, LOW );
dauer1 = pulseIn(EchoPin1, HIGH);
y = (dauer1 / 2) / 2.91;

Serial . print (y,0);
Serial . print (y);
Serial . println (“mm der Y-Achse”);

delay(100);

digitalWrite( TrigPin2, LOW );
delayMicroseconds(2);
digitalWrite( TrigPin2, HIGH );
delayMicroseconds(10);
digitalWrite( TrigPin2, LOW );
dauer2 = pulseIn(EchoPin2, HIGH);
x = (dauer2 / 2) / 2.91;

Serial . print ( x,0 );
Serial . print (x);
Serial . println (“mm der X-Achse”);

delay(1000);
a =0;
while(a<5)
{
digitalWrite(LED_R,HIGH);
digitalWrite(LED_Y,HIGH);
digitalWrite(LED_G,HIGH);
delay(500);
digitalWrite(LED_R,LOW);
digitalWrite(LED_Y,LOW);
digitalWrite(LED_G,LOW);
delay(500);
a++;
}
digitalWrite(LED_Y,LOW);
digitalWrite(LED_G,LOW);
digitalWrite(LED_R,HIGH);
delay(2000);

Label1:
digitalWrite(LED_G, LOW);
delay(10);
digitalWrite(LED_R, HIGH);
delay(1000);
digitalWrite(Zyl_Einf, HIGH);
delay(100);
digitalWrite(Zyl_Einf, LOW);
delay(250);
while (y < 150)
{
digitalWrite(Y_Hoch, HIGH);
digitalWrite( TrigPin1, LOW );
delayMicroseconds(2);
digitalWrite( TrigPin1, HIGH );
delayMicroseconds(10);
digitalWrite( TrigPin1, LOW );
dauer1 = pulseIn(EchoPin1, HIGH);
y = (dauer1 / 2) / 2.91;

Serial . print ( y,0 );
Serial . print (y);
Serial . println (“mm der Y-Achse”);

}
digitalWrite(Y_Hoch, LOW);
delay(100);
while (x < 110 )
{
digitalWrite(X_Zurueck, HIGH);
digitalWrite( TrigPin2, LOW );
delayMicroseconds(2);
digitalWrite( TrigPin2, HIGH );
delayMicroseconds(10);
digitalWrite( TrigPin2, LOW );
dauer2 = pulseIn(EchoPin2, HIGH);
x = (dauer2 / 2) / 2.91;

Serial . print ( x,0 );
Serial . print (x);
Serial . println (“mm der X-Achse”);
delay(10);
}
digitalWrite(X_Zurueck, LOW);
delay(100);
while (x > 110 )
{
digitalWrite(X_Vor, HIGH);
digitalWrite( TrigPin2, LOW );
delayMicroseconds(2);
digitalWrite( TrigPin2, HIGH );
delayMicroseconds(10);
digitalWrite( TrigPin2, LOW );
dauer2 = pulseIn(EchoPin2, HIGH);
x = (dauer2 / 2) / 2.91;

Serial . print ( x,0 );
Serial . print (x);
Serial . println (“mm der X-Achse”);
}
digitalWrite(X_Vor, LOW);
delay(100);
while (y > 30)
{
digitalWrite(Y_Runter, HIGH);
digitalWrite( TrigPin1, LOW );
delayMicroseconds(2);
digitalWrite( TrigPin1, HIGH );
delayMicroseconds(10);
digitalWrite( TrigPin1, LOW );
dauer1 = pulseIn(EchoPin1, HIGH);
y = (dauer1 / 2) / 2.91;

Serial . print ( y,0 );
Serial . print (y);
Serial . println (“mm der Y-Achse”);
}
delay(1000);
digitalWrite(LED_R, LOW);
delay(10);
while (Schalter1 == LOW)
{
digitalWrite(LED_Y, HIGH);
delay(750);
digitalWrite(LED_Y, LOW);
delay(750);
}
digitalWrite(LED_Y, LOW);
delay(50);

Label2:
digitalWrite(LED_G, HIGH);
delay(200);
while (y < 150 )
{
digitalWrite(Y_Hoch, HIGH);
digitalWrite( TrigPin1, LOW );
delayMicroseconds(2);
digitalWrite( TrigPin1, HIGH );
delayMicroseconds(10);
digitalWrite( TrigPin1, LOW );
dauer1 = pulseIn(EchoPin1, HIGH);
y = (dauer1 / 2) / 2.91;

Serial . print ( y,0 );
Serial . print (y);
Serial . println (“mm der Y-Achse”);
}

Please read https://forum.arduino.cc/index.php?topic=148850.0, specifically point #7 about posting code using code tags; next please modify your post.

Please describe what 'crash' means. Does it not compile? Or do you have problems at run time; if so, describe them.

PS
Which Arduino?