the way of wiring 2 ultrasonic sensors work to avoid obstacle

i couldn't make 2 ultrasonic sensors work to avoid obstacle , only one of them i make it work ,
on reality i want to connect 5 of them

please i want help in :
1-how to wire them since i don't have enough pin on the Arduino ?
2-what i should i add on my code if it's good?

thanks

Ali

If you do not have enough pins then use a port expander to cope with your other pin requirements and free up some pins on the arduino for your sensors.

Only ping the emitters one at a time and allow time for things to die down before pinging the next.