Raspberry Pi temperature monitoring

A Raspberry Pi in a closed case without a heatsink overheats easily and starts throttling. There are two quick ways to check.

vcgencmd measure_temp
cat /sys/class/thermal/thermal_zone0/temp

The second prints millidegrees, so 48312 means 48.3 °C. If it regularly goes above 70 °C, add a heatsink or a fan.

vcgencmd get_throttled

Anything other than 0x0 means the board has already throttled because of heat or a weak power supply.