Code not working for self driving car

int inputPin2 = A5; // define obi wan receive pin
int outputPin2 = A5; // define obi wan send pin

pinMode(inputPin2, INPUT);
pinMode(outputPin2, OUTPUT);

  digitalWrite(outputPin2, HIGH);
  delayMicroseconds(10);
  digitalWrite(outputPin2, LOW);
  float Ldistance = pulseIn(inputPin2, HIGH);

You seem to be using a single pin (A5) for both input and output.

Also, loop() contains "myservo.write(90);" but that servo doesn't exist.