Need code for ultrasonic sensor


#1

I am buliding an inovative project but i need some help for coding f ultrasonic sensor.
i want to design my sensor in such a way that whenever the circuit it turnred ON the distance marked ny sensor will be the inital value and any change in initial value will respond. if nyone could help me with this please let me know as soon as possible.