Linux temperatures at exposed to userspace through the thermal class. You will find virtual files called temp
within the sysfs thermal class directories:
cat /sys/class/thermal/thermal_zone0/temp
Some boards and chips will have multiple temperature sensors enumerated in multiple directories under /sys/class/thermal/
eg thermal_zone1
, thermal_zone2
, etc.