Raspberry Pi: CPU/GPU Temperature Monitor

Max operating temperature of Raspberry Pi is 85°C.

If the temperature exceeds 82°C, then the CPU’s clock speed will be slowed until the temperature drops below 82°C.

So it is very important to monitor the temperature of the board and Raspberry Pi has a built-in sensor for this.

In this note i will show how to check the CPU/GPU temperature of Raspberry Pi.

Cool Tip: Shutdown & reboot Raspberry Pi safely! Read more →

Check Temperature of Raspberry Pi

Measure the GPU temperature:

$ vcgencmd measure_temp

– or –

/opt/vc/bin/vcgencmd measure_temp

Check the CPU temperature:

$ echo temp=$((`cat /sys/class/thermal/thermal_zone0/temp`/1000)).0\'C

The CPU/GPU temperature of Raspberry Pi can be monitored using watch command.

For example, to show the GPU temperature of Raspberry Pi each 5 seconds, execute:

$ watch -n5 vcgencmd measure_temp

5 Replies to “Raspberry Pi: CPU/GPU Temperature Monitor”

  1. Wow. Thanks for trying. You’ll get it. None of these commands worked.
    All of these commands here failed. “Command not found”.
    Can you recommend a web site that can show the the commands to get the temp of my pi CPU?

  2. Works absolutely fine for me. But thanks for the dick-ish comment, Bill. Keep trying…you’ll get it.

  3. Keyloggeduser says: Reply

    Lol I googled vcgencmd for powershell (Win10) and I got this and read those two comments. Had to post my lol… Bill just a troll. Command works just fine and if not I’m sure a simple sudo apt-get install vcgencmd would have solved that issue.

  4. Just in case Bill was being serious you need to use the command “vcgencmd measure_temp” on your command line. Do not type the dollar sign at the front. That just represents the command prompt.
    vcgencmd has been available in the Raspbian/Rasberry Pi OS image for as long as I can remember so definitely works.

  5. Just FYI, Will not work when running inside a docker container.

Leave a Reply