URM37 v5.0 trouble

Hello.
I am using URM37v5.0 and I have a problem and need help.
I am unable to measure distances greater than 3 meters.
I purchased a new sensor for the same sensor when this problem occurred but it did not work.
I tried it outdoors in the open and against a large wall.
The data that comes back is like 1e,ff,ff,ff, when I go over 3m, the first data goes away at 22 and the rest are all ff.
My objective is to measure the distance by wireless communication using TWELITE.
I am attaching the cpp file to be used as it is working fine below 3m.
If this is not the case, we conclude that it is a sensor capacity problem and use another sensor.
Please advise how to proceed to a solution.
Sorry if this is hard to understand as I am using a translation tool.
Translated with DeepL.com (free version)