Adding a rangefinder requires framing, scale and failure handling to agree across hardware and simulation before it is useful for terrain-relative operation.
Verify the sensor's bus voltage, range limits, mounting, timing and no-return behavior on the target board. A PR with simulation tests is not equivalent to extensive field validation.