Pros V5 sonar value stuck

I am trying to program an ultrasonic sensor using pros for v5 and the values it is returning is stuck on a number. 40%20PM 58%20PM

Probably a faulty sensor if I were to guess. Try switching it out?

sensor works properly in vex coding studio with the same ports

hmm, then I’m afraid I can’t help you much, I don’t use Pros so I can’t tell you anything about the code. From what I can see, the code looks alright, but I may be wrong.