Taking the Raspberry PI's temperature


Use the following command to show the current temperature of your Raspberry PI board...

/usr/bin/vcgencmd measure_temp

You can use the watch command to refresh in regular intervals. For example, this command will display the current temperature every 2 seconds...

watch -n 2 /usr/bin/vcgencmd measure_temp

The -n switch sets the interval. So e.g. -n 10 would be a 10 second interval.


Related Articles

A few examples of using crontab to setup some scheduled tasks.

Raspberry PI, Linux

How to mount to a CIFS based network share from a Raspberry PI.

Raspberry PI, Linux, Networking

Purchased one of these HATs recently? How to change the fan speed at different temperatures.

Raspberry PI

How to install and setup an OS on a Raspberry PI headlessly.

Raspberry PI