
- ★Product Description
- ★About us
- ★Custom cable
DS18B20 Digital Temperature Sensor Module — 1-Wire, 3.3V/5V, Arduino Compatible
The DS18B20 digital temperature sensor module is one of the most popular temperature sensing solutions in the maker and embedded systems community. Built around the Dallas/Maxim DS18B20 IC, this compact 20×15mm PCB module communicates via the 1-Wire protocol — requiring only a single digital pin on your microcontroller to deliver accurate digital temperature readings from -55°C to +85°C. An onboard LED flashes during 1-Wire communication, providing instant visual confirmation that your sensor is active and talking to your MCU.
Specifications
| Sensor IC | DS18B20 (Dallas/Maxim) |
| Communication | 1-Wire serial interface |
| Supply Voltage | 3.0V – 5.5V (3.3V and 5V compatible) |
| Temperature Range | -55°C to +85°C |
| Accuracy | ±0.5°C (-10°C to +85°C) |
| Resolution | 9–12 bit (programmable) |
| Logic High | >2.2V |
| Logic Low | <0.8V |
| PCB Dimensions | 20 × 15mm |
| Connector | 3-pin header (G/−, VCC, S/Data) |
| Indicator | LED flashes during 1-Wire communication |
| Package | SS Encapsulated TO-92 on PCB |
Pin Connections
| Pin Label | Function | Connect To |
|---|---|---|
| − / G | Ground | Arduino GND |
| Center / R | VCC (3.3–5V) | Arduino 3.3V or 5V |
| S / Y | 1-Wire Data Bus | Any Arduino digital pin |
Arduino Quick-Start
- Connect G to Arduino GND, R to 5V, S to digital pin 4.
- Add a 4.7kΩ pull-up resistor between the S pin and VCC (required for 1-Wire bus).
- Install OneWire and DallasTemperature libraries via Arduino IDE Library Manager.
- Upload the example sketch and open Serial Monitor at 9600 baud to read temperature.
Tip: If the sensor reads -127°C, the 4.7kΩ pull-up resistor is missing or not connected correctly.
Why Choose the DS18B20?
- ✅ Single-wire interface — only one MCU digital pin required, freeing up I/O for other sensors
- ✅ Multiple sensors on one bus — daisy-chain multiple DS18B20s on a single wire using unique 64-bit serial addresses
- ✅ Digital output — immune to electrical noise, ideal for long cable runs unlike analog sensors
- ✅ Programmable resolution — 9 to 12-bit resolution for speed vs. accuracy trade-off
- ✅ 3.3V and 5V compatible — works with Arduino, ESP32, ESP8266, Raspberry Pi, and STM32
- ✅ LED communication indicator — instant visual feedback during sensor polling
- ✅ Inspected and verified — basic operation tested before shipping
Common Applications
- Arduino temperature monitoring and data logging
- Thermostat and temperature controller projects
- 3D printer heated bed and hotend temperature sensing
- Aquarium and fish tank temperature monitoring
- Weather station and environmental sensing
- Cooling fan control based on temperature threshold
- Home automation temperature nodes (ESP8266/ESP32 + MQTT)
Package Contents
- 1× DS18B20 Digital Temperature Sensor Module (20×15mm PCB)

