Rock64 Fan Upgrade - How to control?

I have bought this Fan Upgrade for my Rock64:

Fan is connected to 5V and GRND, Fan is spinning. But I don’t know how to control it, is there a software by DietPI, which enables the Fan only when needed/device gets to hot?


DietPi themselves did not provide such a FAN control functionality.