How to install sensors (lm-sensors) on Ubuntu / Debian Linux

To install the lm-sensors package on Ubuntu or Debian, you can use the following steps:

  1. Open a terminal window.
  2. Update the package list by running the following command:
    sudo apt-get update
  3. Install the lm-sensors package by running the following command:
    sudo apt-get install lm-sensors
  4. Once the installation is complete, run the following command to detect and configure the sensors on your system:
    sudo sensors-detect

This command will run a series of tests to determine which sensors are present on your system, and it will automatically configure them for use with the lm-sensors package.

  1. After the configuration is complete, you can use the sensors command to view information about the sensors on your system. For example:
    sensors

This will display the current temperature readings for all detected sensors, along with information about fan speeds and voltage readings, if available.

Note: The sensors-detect command may prompt you with several questions during the configuration process. It is recommended to accept the default settings by pressing.

Leave a Comment