How can we control fan speed?

Here is our current understanding.

Pixel blaze knows the amount of power consumed by leds.

We need to modify our fan speed based on power consumption.

How can we go about controlling fan speed based on power consumption?

Are there alternative methods to control fan speeds?

We did a quick search on google, chat gpt and these forums and couldn’t find an answer. Any guidance is greatly appreciated.