I've recently done almost exactly this, although I used an ESP8266 running esphome. That powers two 120mm fans that have various speed settings (including 0 rpm via PWM) depending on both the power state of various devices in the cupboard where it's housed, as well as temperature. All speeds and controls are exposed to linux via the Home Assitant API, and of course that has its own alerts and dashboards. I wanted to run this fully independently of the machines its cooling.
Not worth pursuing if you don't already have an HA install, but if you do then perhaps worth a thought of a different approach.