Industrielle styresystemer - Wiki
...
The Code for the Moisture sensor is based on its technical data, where 0v = 0%rH[NOT VERIFIED] which linearly scales to 10v = 100%rH[NOT VERIFIED]. This means that linear interpolation is utilized to scale the input voltage too an output in celsius%rH.
Linear interpolation is performed with the following function,
...