Programming arm robot with ultrasonic sensor

Sounds like a fun project.
https://docs.arduino.cc/retired/getting-started-guides/Braccio/