Skip to Content

Temperature sensor ds18b20

DS18B20 Waterproof Digital Temperature Sensor – 1-Wire Interface

Overview:

The DS18B20 Digital Temperature Sensor is a highly accurate, waterproof temperature sensor ideal for wet environments, outdoor systems, or remote sensing applications. It communicates over a 1-Wire interface, allowing multiple sensors to be connected using only one digital pin. Compatible with Arduino, ESP32, Raspberry Pi, and other microcontrollers, it’s a go-to sensor for temperature monitoring projects.

Key Features:

  • Temperature Range: -55°C to +125°C

  • Accuracy: ±0.5°C from -10°C to +85°C

  • 1-Wire Interface: Requires only one data line for communication

  • Waterproof Stainless Steel Probe – great for liquids and outdoor use

  • Unique 64-bit ID – multiple sensors can be used on the same bus

  • Digital Output: No ADC required

Technical Specifications:

ParameterValue
Temperature Range-55°C to +125°C
Accuracy±0.5°C (-10°C to +85°C)
Resolution9 to 12 bits (programmable)
Voltage Range3.0V to 5.5V
Interface1-Wire
Cable LengthTypically 1 meter
Probe MaterialStainless Steel

Wiring with Arduino Uno:

DS18B20 Wire ColorArduino Pin
Red (VCC)5V
Black (GND)GND
Yellow (Data)D2 (or any digital pin)

🔧 Important: Use a 4.7kΩ pull-up resistor between the data line and VCC.

Arduino Code Example:

cpp
CopyEdit
#include <OneWire.h> #include <DallasTemperature.h> #define ONE_WIRE_BUS 2 OneWire oneWire(ONE_WIRE_BUS); DallasTemperature sensors(&oneWire); void setup() { Serial.begin(9600); sensors.begin(); } void loop() { sensors.requestTemperatures(); float tempC = sensors.getTempCByIndex(0); Serial.print("Temperature: "); Serial.print(tempC); Serial.println(" °C"); delay(1000); }

Applications:

  • Aquarium and hydroponic systems

  • Weather stations

  • Smart home HVAC control

  • Industrial and food temperature monitoring

Resources:

60.00 LE 60.00 LE

This combination does not exist.

Sensor Temperature