Obstacle Avoiding Robot with L293D

AWOL:
Have you tried mounting the sensors lower down?

I had done but it was unsuccessful.Probably,i must solve writing as the code: if sensor's datas(distance) are same,it's time motors stop and run the backward until 1 seconds.I wrote that but it was useless.I must cahange this code but what?

void accelerateBackward ()  {
  if (readPing()==readPing()){
  moveStop();  
  motor1.run(BACKWARD);     
  motor2.run(BACKWARD);     
  delay(1000);
}
}