According to the datasheet.... (115uS) 8.6khz minimum distance.... (18.5mS) 58hz maximum distance..
So 80hz was just in then...
When simulated if I set the pulse to 8.6khz you receive a count of 12 not 36.
If I set the prescaler to 1:4, 8.6khz gives a count of 25 and 58hz yields 5421 (nearer the value you need)
The pulse output doesn't appear linear...
I bought this sensor https://proto-pic.co.uk/4-20ma-current-loop-ultrasonic-range-finder/ 4.20ma out... it was much easier to use..
So 80hz was just in then...
When simulated if I set the pulse to 8.6khz you receive a count of 12 not 36.
If I set the prescaler to 1:4, 8.6khz gives a count of 25 and 58hz yields 5421 (nearer the value you need)
The pulse output doesn't appear linear...
I bought this sensor https://proto-pic.co.uk/4-20ma-current-loop-ultrasonic-range-finder/ 4.20ma out... it was much easier to use..