How to install and use Psensor on Linux

Psensor is a GTK + application tool for monitoring temperature. Its graphical interface shows the temperature of the motherboard, the CPU, the GPU and the hard drives. Also shows the speed of the fans and the CPU utilization. Psensor records the data in real-time charts and issues warnings.

In this tutorial we will learn how to Install Psensor in Linux.


With Psensor you can perform the following functions:

  1. Checks the temperature of your CPU, hard drive, GPU (NVIDIA) and the entire motherboard.
  2. Displays the CPU fan speed.
  3. Checks and prints the CPU usage.
  4. Displays the temperature data in a diagram.
  5. Provides alarms at critical temperatures and fan speeds.

Install Psensor under Linux

Psensor relies on two other tools to effectively measure and report CPU temperature. It depends on the following:

lm sensor : Checks and reports the speed of the CPU fan.

hddtemp: This determines the temperature of the hard disk drive.

To get a holistic report, these two tools must be installed.

Debian / Ubuntu distributions

If you’re running Debian 9 and higher, Ubuntu 18.04 and higher, and any newer derivatives of the two, run the APT command as shown to install Psensor and its dependencies.

$ sudo apt install lm-sensors psensor hddtemp

CentOS / RHEL distributions

For RedHat distributions, you must first ensure that the EPEL repository is activated as follows:

CentOS 8

$ sudo dnf install epel-release


$ sudo dnf install

Once EPEL is installed, go ahead and install Psensor and its dependencies as shown.

$ sudo dnf install lm_sensors hddtemp lm_sensors-devel

How to use Psensor

First, scan your system for various hardware monitoring chips or sensors. The command determines which modules are loaded for lm_sensors to work effectively.

$ sudo sensors-detect

This will ask you to allow a variety of sensors to be auto-detected. When prompted, just type ‘YES SIR‘and press ENTER.

Detecting sensors
Detecting sensors

Do the same for all prompts.

Detect hardware components for Psensor and lm_sensors automatically
Detect hardware components for lm_sensors

After discovery is complete, run the following command to view the temperature of various CPU cores

$ sensors

Sensor command
Sensor command

To start displaying the graphics, press the Super key (Windows logo key) and search for Psensor as shown.

Note: Using Gnome Desktop on Ubuntu 20.04

Start Psensor
Start Psensor

This will start the Psensor temperature monitor as shown. Make sure to check all CPU cores, disk and memory options for graphing.

Psensor temperature monitor
Psensor temperature monitor

Make sure you can find the Psensor icon in the menu on the top bar. Click it to see the temperature of various CPU cores, CPU usage, and hard drive temperature.

Psensor temperature display and menu options
Psensor temperature display and menu options

To edit the sensor settings, click on the ‘Sensor settings‘Options. You can edit various parameters, for example set the alarm thresholds.

Edit alarm thresholds Psensor
Edit alarm thresholds Psensor

In addition, you can configure the display of sensor readings for each component in the menu on the top bar by clicking the ‘Application indicator‘Tab and checking on’Display sensor in the label (experimental)‘ Opportunity.

Edit psensor settings
Edit psensor settings

This will display the temperature readings in the top menu bar as shown.

Temperature label on top menu bar
Temperature label for Psensor at the top menu bar


Installing and using the Psensor tool is a fairly simple task. It provides an overview of the temperature measurement of CPU cores, hard drives and other chipsets, the temperature of which can be measured and recorded. Note that this only works on a physical PC and not on a virtual machine because the components are in a virtual state.