zephyr/samples/sensor/esp32_temp_sensor
Anas Nashif 0064b6e8b6 tests: samples: cleanup test tags, add integration_platforms
Use integration platforms and sanitize tags.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-06-02 04:47:06 -04:00
..
boards
src
CMakeLists.txt
README.rst
prj.conf
sample.yaml tests: samples: cleanup test tags, add integration_platforms 2023-06-02 04:47:06 -04:00

README.rst

.. _esp32_temp_sensor:

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.

.. zephyr-app-commands::
   :zephyr-app: samples/sensor/esp32_temp_sensor
   :board: esp32s2_saola
   :goals: build
   :compact:

Sample Output
=============

.. code-block:: console

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