Ultrasonics help

I am working on ultrasonic hc-sr04 and if an obstacle is detected it should rotate the servo after 3-5 second so anybody could help me by sending code I don't know how to increase the delay of ultrasonic to synchronise with my servo after the detection of obstacle

We can’t see your code.

Hijacked thread split.