This is the documentation for the latest (main) development branch of Zephyr. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

ESP32 Temperature Sensor

Overview

This sample periodically reads temperature from the ESP32-S2 and ESP32-C3 Internal Temperature Sensor and display the results.

Building and Running

In order to run this sample, make sure to enable esp32_temp node in your board DT file.

west build -b esp32s2_saola samples/sensor/esp32_temp_sensor

Sample Output

Current temperature: 22.6 °C
Current temperature: 22.8 °C
Current temperature: 23.1 °C