ESP32C3, a digital thermal sensor, INA219, a 12V -> 5V step down converter, a 12V PWM fan and some cables. Then you can measure the temperature, steer the fan speed based on the outcome, measure voltage and power consumption.
All data sent via MQTT to a machine running e.g. iobroker, where you...