check this out! help how to code this

help me how to code this?

any idea?

This is fairly straight-forward.

The ultrasonic sensor gives you a distance measurement which you then use to decide on an angle for the servo.

There are plenty of examples online of using an ultrasonic sensor with arduino, likewise for using servos.

What is your level of knowledge with Arduino and electronics?

If you have never done anything with Ardunio you might want to start with something simpler just to get to grips with things.