The hard drive, at least the ones commonly used on desktop computers, and Raid Arrays run under a constant RPM, so there is no sensor to read. However, for each device there is a specific speed . You can extract this information from a predefined database based on the serial number or guess using SMART data .
to guess it, you can use the table in this Wikipedia article to map rotational delay to an RPM device.
Mehran
source share