Complete guide to monitoring and controlling the temperature of your Raspberry Pi

Last update: 9 September 2026

Close-up of a Raspberry Pi board installed in a transparent case.

Having a Raspberry Pi is fantastic for building home automation projects , but there's one detail we sometimes forget until it's too late: heat. Depending on what you're asking of the device, the processor can get quite hot, and if you don't monitor that temperature, the system will perform what's known as thermal throttling , lowering the clock speed to prevent overheating. This means your machine will run slower than normal.

While this wasn't a problem in the early models because they weren't as powerful, the arrival of the Raspberry Pi 5 has changed things dramatically. Now, we absolutely need to keep an eye on the temperatures the SoC operates at, since its performance is much higher and, therefore, it generates significantly more heat. In this article, we'll explore all the possible ways to measure and control this temperature, from the most basic methods to more advanced solutions.

Raspberry Pi smart devices
Related articles:
Smart devices with Raspberry Pi and advanced home automation

Quick measurements using the terminal

Command terminal screen with digital code, representing console monitoring.

If you want to avoid complications and simply need to know the processor's current status, the terminal is your best friend. There are several ways to obtain this information. One of the most direct is to run the command `vcgencmd measure_temp` , which immediately returns the reading in degrees Celsius.

For those who prefer to read the system file directly, you can use `cat /sys/class/thermal/thermal_zone0/temp` . An important detail here is that the result is displayed in millidegrees, so you need to divide the value by 1000 to get the actual temperature. If you want the display to update automatically every few seconds without having to type the command repeatedly, you can use the command `watch -n X vcgencmd measure_temp` , replacing `X` with the desired number of seconds between readings.

  How to use Artificial Intelligence without creating an account

Automation with custom scripts

Detail of a CPU fan and heat sink, essential to prevent thermal throttling.

If you're like many people who forget long commands or don't want to be constantly scrolling through the console history with the up arrow, the ideal solution is to create an executable Bash script . This allows you to wrap CPU and GPU instructions in a small .sh file.

To do this, simply use an editor like nano, define variables to store the results of the commands mentioned above, and format them with the `echo` command to make them readable. After saving the file, it's essential to assign it execute permissions using the `chmod +x` command, allowing you to run the measurement with a single command from any folder on the system.

homelab energy consumption measurement
Related articles:
How to measure and optimize the electricity consumption of your homelab

Visual control and graphical tools

Laptop displaying a control panel with real-time data analysis graphs.

Not everything has to be black text on a white background. If you're using the Raspberry Pi OS desktop environment, you can integrate the temperature directly into the top taskbar . Simply right-click on the panel, go to the "Add/Remove Plugins" option, and select " Temp Monitor" or "CPU Temp ." This allows you to quickly check the thermal status while working without interrupting your tasks.

If you're looking for something much more powerful and professional, there's a tool called Cockpit . It's a web-based management interface that you install on your motherboard and access from the browser of any device on your local network via port 9090. Cockpit not only shows you real-time CPU temperature and usage with historical graphs, but it also allows you to manage services, update software, and monitor RAM and storage without writing a single line of code.

  Complete Guide to Switching to Linux Mint: From Windows to the Freedom of Free Software

Advanced monitoring and cloud services

Detailed view of the electronic components and SoC of a Raspberry Pi board.

For those taking their projects to the next level, there are options like PiCockpit , which offers a module called PiStats to visualize chip performance and heat through detailed graphs. It's a very convenient solution if you have multiple boards and want to centralize monitoring from a single location.

There are even more complex implementations that integrate IoT platforms like OKdo Cloud . In these cases, the Raspberry Pi sends temperature data to the cloud via TCP/IP protocols, and this data can be viewed on remote displays programmed in Python or mobile applications, allowing for complete remote monitoring from anywhere in the world.

IoT home network security
Related articles:
Home network security and IoT: a complete guide to a protected smart home

Critical thresholds and cooling tips

When should we start to worry? Although each model varies, thermal throttling generally becomes a problem when temperatures exceed 60°C on models like the Pi 3+, while on the Raspberry Pi 4 the limit is higher, around 80-85°C. You can check if your board has experienced slowdowns using the command `vcgencmd get_throttled`.

If you notice that the values ​​are too high, there are several ways to lower the thermal decibels. The simplest is to install aluminum or anodized aluminum heatsinks on the SoC. If that isn't enough, an active fan is the ultimate solution, especially necessary on the Raspberry Pi 5. Other useful tactics include positioning the board vertically to improve airflow, removing the restrictive plastic casing, or using cases designed for heat dissipation, such as the FLIRC aluminum cases.

  Best Web Resources for CSS

Mastering thermal monitoring, whether through quick commands, web panels like Cockpit, or cloud integration, is essential to ensure hardware performance remains stable and performance is consistent. Combining monitoring software with proper cooling, such as fans or heatsinks, allows the Raspberry Pi to handle heavy workloads without risk of degradation or unexpected speed drops.

Home automation tutorials, Home Assistant guides
Related articles:
Complete guide to home automation and Home Assistant for your smart home