Get hard disk status for controlling cooling fan

Hi there,

the next days I want to rebuild my (Debian-based) NAS to a smaller pc housing and the hard disk drives are going in a seperate 3d printed case which also includes a fan for cooling the drives. In this printed case is also a DS18B0 temperature sensor.

The general control function for the fan should be no problem, but how to get the disk status to the Arduino?
One idea - Cyclic running of a python script to get the disk status and send it via serial connection to the Arduino?
Other idea - Same procedure but sending it via UDP to a Arduino with wlan connection

Or maybe someone knows other ways to get the status (only if it is running or not) to the Arduino?

Thanks :slight_smile:

Install a temperature sensor in the hard disc compartment and let that be the source for the fan actions.

possibly, but I've had little luck getting the temps off most peripherals on my Ubuntu desktop via lm-sensors which is what a python script would tap into. I'd fiddle with that and see if you can see the temps in the OS, and then you could get it via script.