Heat issue solved by separating SATA HAT and Pi

I’m going to the origin, please really sorry for my basic speech but I need to know if I missed something.

This is my fan. It has4 pins, one for ground (black) another one 5V (red) and pwn control (yellow) the blue pin is for show the rpm that fan is working (output info from fan)

The black goes to pin 9, red to pin4 and yellow to pin8.

Has any config I need to set in my raspberry to control that? I installed the rockpi package to set the threshold with levels.

Where is the mistake in this post…