Reading the Current Temperature of Raspberry Pi SoC

To measure the Raspberry Pi’s core temperature run the following command in the terminal.

/opt/vc/bin/vcgencmd measure_temp

This is very helpful when putting your Pi into a case as you can make sure it is not getting too hot, especially when over-clocking.