linux get temperature code example
Example 1: check cpu temp linux
watch -n 2 sensors
Example 2: how to read temperature in linux
cat /sys/class/thermal/thermal_zone0/temp
thermal_zone0 can be different
watch -n 2 sensors
cat /sys/class/thermal/thermal_zone0/temp
thermal_zone0 can be different