How do you code a Ultrasonic Range Finder in VCS(C++ not C++ pro)
Here, this should help. You can only get the current reading of the sensor, but you can use it to program whatever you want.
https://help.vexcodingstudio.com/#cpp/namespacevex/classvex_1_1sonar/distance