<commit_before>.. _ds18b20_sample:

DS18B20 1-Wire Temperature Sensor
#################################

Overview
********

This sample shows how to use the Zephyr :ref:`sensor_api` API driver for the
`Maxim DS18B20`_ temperature sensor.

.. _Maxim DS18B20:
   https://www.maximintegrated.com/en/products/sensors/DS18B20.html`

The sample periodically reads temperature data from the
first available DS18B20 device discovered in the system. The sample checks the
sensor in polling mode (without interrupt trigger).

Building and Running
********************

The devicetree must have an enabled node with ``compatible = "maxim,ds18b20";``.
See below for examples and common configurations.

If the sensor is not built into your board, start by wiring the sensor pins
as shown in the Figure Hardware Configuration of the `DS18B20 datasheet`_ at
page 10.
<commit_msg>samples: sensor: ds18b20: Fix incorrect link<commit_after>.. _ds18b20_sample:

DS18B20 1-Wire Temperature Sensor
#################################

Overview
********

This sample shows how to use the Zephyr :ref:`sensor_api` API driver for the
`Maxim DS18B20`_ temperature sensor.

.. _Maxim DS18B20:
   https://www.maximintegrated.com/en/products/sensors/DS18B20.html

The sample periodically reads temperature data from the
first available DS18B20 device discovered in the system. The sample checks the
sensor in polling mode (without interrupt trigger).

Building and Running
********************

The devicetree must have an enabled node with ``compatible = "maxim,ds18b20";``.
See below for examples and common configurations.

If the sensor is not built into your board, start by wiring the sensor pins
as shown in the Figure Hardware Configuration of the `DS18B20 datasheet`_ at
page 10.

{'fraction_non_alphanumeric': 0.12386363636363637, 'fraction_numerical': 0.042045454545454546, 'mean_word_length': 5.200704225352113, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4533481', 'n_tokens_mistral': 545, 'n_tokens_neox': 478, 'n_words': 211}