Fancoil algo

First, the fan speed is calculated according to the diagram below.

Next, the fan-speed limitation is applied.

The valve is opened whenever the fan speed is LO or higher.