MKR 1010 and A02YYUW Waterproof Ultrasonic Sensor

Did it but same. It is interesting that when first byte is 0XFF then we get two sets of values like this:

255 9 170 178 9 170 178 255. Does the do/while works? I took it from DFRobot site but should it work? And while does one more read?