Code to read temperatures (from shared memory), fan speeds and voltages from speedfan. Speedfan must if course be installed and running.
This mex file uses code from the SpeedFan Information Tool 1.0:
[temps,fans,volts]=speedfanReader(8); %get 8 first values
32 values are returned as default. Unfortunately no information about which temperatures correspond to which sensors are available when reading speedfans values from shared memory.