You need a lot more sensors than that to avoid an obstacle. I would add a 6axis gyro to know the direction of the car and if the car is moving. Ultrasonic sensors are handy but they describe an obstacle not alwase verry accurate, they have there limits. If you want to be MORE sure there is an obstacle you probebly need a lidar that is turns around 360 degrees.