Here’s a nifty little Ruby gem that allows you to read your Mac’s sensors in Terminal – iStats.
Not to be confused with iStat Menu, a closed source GUI tool that costs $10 and does similar things.
iStats is simply a free macOS command-line tool that allows you to easily grab the CPU temperature, fan speeds, battery stats etc.

