The sensor should send the distance in this format
"The output is an ASCII capital “R”, followed by three ASCII character
digits representing the range in inches up to a maximum of 255,
followed by a carriage return (ASCII 13)."
In your code you are reading only three characters when the sensor sends five. The first letter is 'R', that is followed by the distance value, and after that comes carriage return '\r'.
You said that the first value is correct.. I don't see how "001400140014cm" would be correct in any situation. I think you have your UART baudrate incorrect.