Note
Hello, welcome to the SunFounder Raspberry Pi & Arduino & ESP32 Enthusiasts Community on Facebook! Dive deeper into Raspberry Pi, Arduino, and ESP32 with fellow enthusiasts.
Why Join?
Expert Support: Solve post-sale issues and technical challenges with help from our community and team.
Learn & Share: Exchange tips and tutorials to enhance your skills.
Exclusive Previews: Get early access to new product announcements and sneak peeks.
Special Discounts: Enjoy exclusive discounts on our newest products.
Festive Promotions and Giveaways: Take part in giveaways and holiday promotions.
👉 Ready to explore and create with us? Click [here] and join today!
Temperature Sensor Module (DS18B20)
The DS18B20 is a digital temperature sensor that can measure temperatures ranging from -67°F to +257°F with an accuracy of ±0.5°C. It follows the single wire protocol and can communicate with a microcontroller using only one pin. The sensor can be powered directly from the data line, eliminating the need for an external power supply. The applications of the DS18B20 temperature sensor include industrial systems, consumer products, systems which are sensitive thermally, thermostatic controls, and thermometers.
Specification
PCB Size: 13 x 27.9mm
Power Supply: 3V to 5.5V
Temperature Range: -55 to 125°C
Accuracy: ±0.5°C
Resolution: 9 to 12 bit (selectable)
Pinout
VCC: This is the positive power supply input from the main control.
GND: Ground connection.
OUT: The 1-Wire Data Bus that should be connected to a digital pin on the microcontroller.
Schematic diagram
Example
Lesson 18: Temperature Sensor Module (DS18B20) (Arduino UNO)
Lesson 18: Temperature Sensor Module (DS18B20) (Raspberry Pi Pico)
Lesson 18: Temperature Sensor Module (DS18B20) (Raspberry Pi)