How To Install lm_sensors on a CentOS / RHEL / Scientific Linux

Fig.01: Install lm_sensors using yum

Fig.01: Install lm_sensors using yum

To install lm-sensors on a CentOS, RHEL, Scientific and older version of Fedora Linux (fedora v21 or older) to monitor fan speed and cpu temp info, type:
$ sudo yum install lm_sensors
Sample outputs:

Loaded plugins: fastestmirror, langpacks
Determining fastest mirrors
 * base:
 * epel:
 * extras:
 * updates:
updates/7/x86_64/primary_db                                | 3.3 MB   00:05     
google-chrome                                                               3/3
Resolving Dependencies
--> Running transaction check
---> Package lm_sensors.x86_64 0:3.3.4-11.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
 Package             Arch            Version                Repository     Size
 lm_sensors          x86_64          3.3.4-11.el7           base          137 k
Transaction Summary
Install  1 Package
Total download size: 137 k
Installed size: 409 k
Is this ok [y/d/N]: y
Downloading packages:
lm_sensors-3.3.4-11.el7.x86_64.rpm                         | 137 kB   00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : lm_sensors-3.3.4-11.el7.x86_64                               1/1 
  Verifying  : lm_sensors-3.3.4-11.el7.x86_64                               1/1 
  lm_sensors.x86_64 0:3.3.4-11.el7                                              

How to use to use lm_sensors on a CentOS, RHEL and Scientific Linux?

Once lm_sensors is installed you need to type:
$ sudo sensors-detect
Next hit ENTER key for everything it suggests. At the end it will ask you whether to add what it finds to /etc/modules. If you are happy with the output i.e. findings type “yes”.

To see the values for the hardware sensors detected on your motherboard / server, type:
$ sensors
Sample outputs:

Adapter: ISA adapter
Physical id 0:  +37.0?C  (high = +80.0?C, crit = +90.0?C)
Core 0:         +32.0?C  (high = +80.0?C, crit = +90.0?C)
Core 1:         +29.0?C  (high = +80.0?C, crit = +90.0?C)

Or use the following command:
$ sensors | less
$ sensors | egrep -i --color 'fan|cpu|temp'

Examples and usage: Linux Read CPU Temperature Sensor Chip Data Including Voltage and Fan Speed With lm-sensors