How to use Ultrasonic sensor as trigger?

Hello @eugene219
Welcome.
Please can you take some time and read How to get the best out of this forum.
Yes, we need to know what you have, what you have tried, we need to see your best effort at doing what you are trying to do and we need you to tell us what you are stuck with.

There are plenty of examples in the IDE and on this forum to get you started, not to mention on the wider internet.

Thanks.