How to use DS18B20 with Arduino (Example included)

Опубликовано: 12 Апрель 2026
на канале: DIY Engineers
5,503
60

How to use DS18B20 with Arduino. The video will show the DS18B20 with an Arduino UNO. We'll go over the connections to the Arduino, the specification sheet for the DS18B20, how to program the DS18B20 in Arduino, the required libraries, and testing of the DS18B20.

Related Blog Post: www.diyengineers.com/2020/12/31/ds18b20-with-arduino

Datasheet:
https://datasheets.maximintegrated.co...

Libraries:
Dallas Temperature Control Library (by Miles Burton):
https://github.com/milesburton/Arduin...

OneWire Library (by www.pjrc.com):
https://github.com/PaulStoffregen/One...

Items used in this video (affiliate links):
*As an Amazon Associate I earn from qualifying purchases.

Arduino UNO:
https://amzn.to/3U7xAoT

DS18B20 Module (KY-001):
https://amzn.to/4aKUcTb

DS18B20 (stand-alone):
https://amzn.to/4aKUglT

Hand-held infrared thermometer:
https://amzn.to/3JtJAfq

Breadboard (Elenco 9440):
https://amzn.to/4b5Onzq

Video Chapters:
0:00 Intro
1:58 Datasheet
2:56 Sensor pins
3:40 Connecting to Arduino
4:46 Downloading and importing libraries
4:54 Arduino code overview
6:12 Example testing