# Retrieving temperature from integrated sensor on ESP32-S2

**URL:** <https://community.sparkfun.com/t/retrieving-temperature-from-integrated-sensor-on-esp32-s2/42355>\
**Category:** ESP32\
**Created:** [June 25, 2021, 7:24pm UTC](https://community.sparkfun.com/t/retrieving-temperature-from-integrated-sensor-on-esp32-s2/42355 "2021-06-25T19:24:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ksufan99](https://avatars.discourse-cdn.com/v4/letter/k/94ad74/32.png) [@ksufan99](https://community.sparkfun.com/u/ksufan99)\
**Post date:** [June 25, 2021, 7:24pm UTC](https://community.sparkfun.com/t/retrieving-temperature-from-integrated-sensor-on-esp32-s2/42355/1 "2021-06-25T19:24:28Z")

</div>

I am using the SparkFun Thing Plus - ESP32-S2 WROOM, [https://www.sparkfun.com/products/17743](https://www.sparkfun.com/products/17743)

I can program using Arduino IDE and have gotten it to connect on Wi-fi, so module is working.

This board spec says it has an integrated temperature sensor, but I have not been able to find any documentation how to access the temp reading. Where can I find information on this?

---

<div class="post-metadata">

**Author:** ![TS-Russell](https://yyz1.discourse-cdn.com/sparkfun/user_avatar/community.sparkfun.com/ts-russell/32/6092_2.png) [@TS-Russell](https://community.sparkfun.com/u/TS-Russell)\
**Post date:** [June 25, 2021, 10:04pm UTC](https://community.sparkfun.com/t/retrieving-temperature-from-integrated-sensor-on-esp32-s2/42355/2 "2021-06-25T22:04:33Z")

</div>

The only thing it mentions in the datasheet is:

"3.3.3 Temperature Sensor

The temperature sensor generates a voltage that varies with temperature. The voltage is internally converted via

an ADC into a digital value.

The temperature sensor has a range of –20 °C to 110 °C. It is designed primarily to sense the temperature

changes inside the chip. The temperature value depends on factors like microcontroller clock frequency or I/O

load. Generally, the chip’s internal temperature is higher than the ambient temperature."

And I managed to find this [https://github.com/espressif/arduino-es … p\_sensor.h](https://github.com/espressif/arduino-esp32/blob/master/tools/sdk/esp32c3/include/driver/esp32c3/include/driver/temp_sensor.h) in the [https://raw.githubusercontent.com/espre … index.json](https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json)

Hope this helps!

---

<div class="post-metadata">

**Author:** ![ksufan99](https://avatars.discourse-cdn.com/v4/letter/k/94ad74/32.png) [@ksufan99](https://community.sparkfun.com/u/ksufan99)\
**Post date:** [June 25, 2021, 11:57pm UTC](https://community.sparkfun.com/t/retrieving-temperature-from-integrated-sensor-on-esp32-s2/42355/3 "2021-06-25T23:57:54Z")

</div>

Thanks for the quick response. I misunderstood the product description on Sparkfun as I thought the integrated temp sensor was an environmental temp sensor. It might be good to clarify this is meant to monitor the chip internal temp to help people avoid this mistake in the future.
