Cooler for Raspberry Pi 5

Hello everyone, I’ve been working on setting up my cooler for the Raspberry Pi 5 for nearly 5 hours now. I’m using Home Assistant OS and have removed the cover from the slot and plugged the connector into the port. I simply want the cooler to start running only when the CPU reaches 50 degrees. I’ve already gone through various tutorials, installed HACS Raspberry Pi GPIO PWM, made the settings in the configuration.yaml, but the fan just keeps running constantly, and I don’t know what to do next.