nRF5 SDK v17.1.0
Temperature Example

The Temperature Example shows how to use a temperature sensor and print the measurement.

The application starts with configuring the temperature module and app_uart. The main loop reads the temperature sensor and prints measurement every 500 milliseconds.

You can find the source code and the project file of the example in the following folder: <InstallFolder>\examples\peripheral\temperature

Testing

Test the Temperature Example application by performing the following steps:

  1. Compile and program the application.
  2. Start a terminal emulator like PuTTY and connect to the used COM port with the following UART settings:
    • Baud rate: 115.200
    • 8 data bits
    • 1 stop bit
    • No parity
    • HW flow control: None
  3. Observe that a temperature value is printed every 500 milliseconds.

Documentation feedback | Developer Zone | Subscribe | Updated