Home Assistant’s Compensation integration gains a visual setup for creating a corrected sensor from an existing reading. Pick the source sensor, then enter pairs of measured values and the values they should represent, instead of defining the calibration in YAML.
The helper can fit a straight line or a curve through those reference points. Its options include rounding, units and lower or upper limits, so the result can match the scale you need. It produces a separate corrected sensor; it does not change the physical device’s calibration.