# CPU Temperature

**URL:** https://forums.sifive.com/t/cpu-temperature/1223
**Category:** HiFive Unleashed
**Created:** [May 12, 2018, 8:35pm UTC](https://forums.sifive.com/t/cpu-temperature/1223 "2018-05-12T20:35:22Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![forksand](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.sifive.com/forksand/32/469_2.png) [@forksand](https://forums.sifive.com/u/forksand)
#### Post date: [May 12, 2018, 8:35pm UTC](https://forums.sifive.com/t/cpu-temperature/1223/1 "2018-05-12T20:35:22Z")

</div>

What is the best way to get the CPU temperature from the command line? The typical `sensors` from `lm-sensors` doesn’t work. I can get it externally with a thermocouple, but I’d like it from the command line too.

Thanks,

-Jeff

---

<div class="post-metadata">

### Author: ![terpstra](https://avatars.discourse-cdn.com/v4/letter/t/7c8e57/32.png) [@terpstra](https://forums.sifive.com/u/terpstra)
#### Post date: [May 12, 2018, 9:09pm UTC](https://forums.sifive.com/t/cpu-temperature/1223/2 "2018-05-12T21:09:51Z")

</div>

There is no temperature sensor in the U540 chip or on the unleashed board. Sorry. ☹

If you want to use an external sensor you’ve attached, you presumably need to add support for that device in the kernel before lm-sensors can use it.

---

<div class="post-metadata">

### Author: ![forksand](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.sifive.com/forksand/32/469_2.png) [@forksand](https://forums.sifive.com/u/forksand)
#### Post date: [May 14, 2018, 4:34pm UTC](https://forums.sifive.com/t/cpu-temperature/1223/3 "2018-05-14T16:34:58Z")

</div>

We’re going to measure externally for now with a Fluke and a thermocouple. Here’s a drawing:

[https://github.com/forksand/hifive-unleashed-case/blob/master/CNC/hifive-heatsink-thermocouple.pdf](https://github.com/forksand/hifive-unleashed-case/blob/master/CNC/hifive-heatsink-thermocouple.pdf)

-Jeff
