I've done an app to communicate with an arduino board that shows the info i send in a LCD. The problem is that i want to send the CPU temp, i know the best is use lm-sensors (i'm using linux) but don't know how, it doesn't have any example, so, does somebody know how to use it or where i can get an example?
There are multiple programs to choose from, with the best tools for checking CPU temperature, including Core Temp (opens in new tab), NZXT's CAM (opens in new tab), AIDA64, HWiINFO, or HWMonitor.
Navigate to the Menu bar of the Linux system, and search for Psensor. You will find the installed Psensor application in it. Click on it to open it and try using it. You will see the graph and statistics of the CPU in the Psensor temperature monitor window.
If the lm_sensors modules are already loaded, the temperatures should be accessible in files from sysfs (for example: /sys/class/hwmon/hwmon0/device/temp1_input
) that you can read with standard C/C++ file functions.
http://www.kernel.org/doc/Documentation/hwmon/sysfs-interface
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With