Raspberry Pi get real-time temperature

Open the terminal, using the command view CPU temperature, followed by Enter the following: 

1. Go to the directory operation

 cd /sys/class/thermal/thermal_zone0 

2. Check temperature

cat temp

Raspberry Pi return value 

51540

The return value is divided by 1000 the current value of the CPU temperature. I.e., the current temperature is 51 degrees Celsius.

Guess you like

Origin www.cnblogs.com/cloudrivers/p/11443221.html