This Arduino library provides support for the 7Semi DS18B20 Temperature Sensor Module, a waterproof 1-wire digital sensor capable of measuring temperatures from -55°C to +125°C with 9–12-bit resolution. It’s ideal for weather monitoring, thermal logging, and embedded sensing applications.
- 7Semi DS18B20 Digital Temperature Sensor Module
- Arduino-compatible board
- Digital GPIO pin
- Open Arduino IDE
- Go to:
Sketch > Include Library > Manage Libraries…(Arduino IDE 1.x), orTools > Library Manager…or click 📚 icon (IDE 2.x)
- Search for:
- 7Semi DS18B20
- Click Install
Then in your sketch:
#include <7semi_ds18b20.h>
| DS18B20 Pin | Arduino Pin |
|---|---|
| VCC | 5V or 3.3V |
| GND | GND |
| DQ (Data) | D2 |