/proc and /sys filesystems. It
is fast and reasonably optimized.
Documentation.
lm-sensors utility program.
Documentation.
/sys/class/hwmon sysfs.
Documentation.