If you need urgent consulting help click here

STM32 Temperature Sensor

Overview

This sample periodically reads temperature from the STM32 Internal Temperature Sensor and display the results.

Building and Running

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

west build -b nucleo_f103rb samples/sensor/stm32_temp_sensor

Sample Output

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