Obstacle Avoiding Robot with L293D

AWOL:
it's OK - you don't have to ask permission.
And . . ?
What happened?
I can't think of many directional sensors that will detect objects placed behind them

(what about the code tags?)

while the robot runs forward,sensor can not see the obstacles which is its the rightside and leftside therefore motor or wheels is being catched by the obstacle.