This is DS18B20 Water Proof Temperature Probe – Black (1m) Original Chip which is based on the DS18B20 sensor .
It is very handy for when you need to measure something far away, or in wet conditions. Because they are digital, you don’t get any signal degradation even over a long distances.
These 1-wire digital temperature sensors are fairly precise (±0.5°C over much of the range) and can give up to 12 bits of precision from the onboard digital-to-analog converter.
They work great with any microcontroller using a single digital pin, and you can even connect multiple ones to the same pin, each one has a unique 64-bit ID burned in at the factory to differentiate them. Usable with 3.0-5.0V systems. When using with microcontroller put a 4.7k resistor to sensing pin, which is required as a pull-up from the DATA to VCC line.
Wired connection
Red: VCC/VDD Yellow/White: DATA Black: GND
Features :
Each pin uses a heat-shrinkable tube to prevent short circuits, internal sealing glue, waterproof, moistureproof.
Stainless steel tube encapsulation waterproof moistureproof prevents rust.
Stainless steel tube 6mm diameter by 30mm long
Contains DS18B20 temperature sensor
9 to 12-bit selectable resolution
Uses 1-Wire interface- requires only one digital pin for communication
Unique 64 bit ID burned into the chip
Multiple sensors can share one pin
Temperature-limit alarm system
Query time is less than 750ms
Without the external components, the unique single bus.
Note: The probe wire length may vary ±3%
Package Includes :
1 x Waterproof Digital Thermal Probe DS18B20 1 meter cable.
Pin Connections Table 1
Board Sensor Pin Connection DS18B20 VCC/GND/DATA 3.3-5V / GND / board data pin + 4.7k pull-up to VCC
DS18B20 Water Proof Temperature Probe - Black (1m) - Arduino Uno
DS18B20 Water Proof Temperature Probe - Black (1m) - Arduino Nano
DS18B20 Water Proof Temperature Probe - Black (1m) - Arduino Mega
DS18B20 Water Proof Temperature Probe - Black (1m) - ESP32
DS18B20 Water Proof Temperature Probe - Black (1m) - ESP8266
DS18B20 Water Proof Temperature Probe - Black (1m) - STM32
DS18B20 Water Proof Temperature Probe - Black (1m) - Raspberry Pi Pico
1 //ekostra.com
2 //electronics store in egypt
3 //+201008896258
4
5 // OneWire data pin 2 on Arduino Uno. Needs a 4. 7k pull-up resistor between data and VCC.
6 #include <OneWire.h>
7 #include <DallasTemperature.h>
8
9 #define ONE_WIRE_BUS 2
10 OneWire oneWire(ONE_WIRE_BUS);
11 DallasTemperature sensors(&oneWire);
12
13 void setup () {
14 Serial.begin (115200 );
15 sensors.begin();
16 }
17
18 void loop () {
19 sensors.requestTemperatures();
20 float tempC = sensors.getTempCByIndex(0 );
21
22 if (tempC == DEVICE_DISCONNECTED_C) {
23 Serial.println ("Error: DS18B20 not found - check wiring/pull-up resistor.");
24 } else {
25 Serial.print ("Temperature: "); Serial.print (tempC); Serial.println (" C");
26 }
27
28 delay (1000 );
29 }
1 //ekostra.com
2 //electronics store in egypt
3 //+201008896258
4
5 // OneWire data pin 2 on Arduino Nano. Needs a 4. 7k pull-up resistor between data and VCC.
6 #include <OneWire.h>
7 #include <DallasTemperature.h>
8
9 #define ONE_WIRE_BUS 2
10 OneWire oneWire(ONE_WIRE_BUS);
11 DallasTemperature sensors(&oneWire);
12
13 void setup () {
14 Serial.begin (115200 );
15 sensors.begin();
16 }
17
18 void loop () {
19 sensors.requestTemperatures();
20 float tempC = sensors.getTempCByIndex(0 );
21
22 if (tempC == DEVICE_DISCONNECTED_C) {
23 Serial.println ("Error: DS18B20 not found - check wiring/pull-up resistor.");
24 } else {
25 Serial.print ("Temperature: "); Serial.print (tempC); Serial.println (" C");
26 }
27
28 delay (1000 );
29 }
1 //ekostra.com
2 //electronics store in egypt
3 //+201008896258
4
5 // OneWire data pin 2 on Arduino Mega. Needs a 4. 7k pull-up resistor between data and VCC.
6 #include <OneWire.h>
7 #include <DallasTemperature.h>
8
9 #define ONE_WIRE_BUS 2
10 OneWire oneWire(ONE_WIRE_BUS);
11 DallasTemperature sensors(&oneWire);
12
13 void setup () {
14 Serial.begin (115200 );
15 sensors.begin();
16 }
17
18 void loop () {
19 sensors.requestTemperatures();
20 float tempC = sensors.getTempCByIndex(0 );
21
22 if (tempC == DEVICE_DISCONNECTED_C) {
23 Serial.println ("Error: DS18B20 not found - check wiring/pull-up resistor.");
24 } else {
25 Serial.print ("Temperature: "); Serial.print (tempC); Serial.println (" C");
26 }
27
28 delay (1000 );
29 }
1 //ekostra.com
2 //electronics store in egypt
3 //+201008896258
4
5 // OneWire data pin 4 on ESP32. Needs a 4. 7k pull-up resistor between data and VCC.
6 #include <OneWire.h>
7 #include <DallasTemperature.h>
8
9 #define ONE_WIRE_BUS 4
10 OneWire oneWire(ONE_WIRE_BUS);
11 DallasTemperature sensors(&oneWire);
12
13 void setup () {
14 Serial.begin (115200 );
15 sensors.begin();
16 }
17
18 void loop () {
19 sensors.requestTemperatures();
20 float tempC = sensors.getTempCByIndex(0 );
21
22 if (tempC == DEVICE_DISCONNECTED_C) {
23 Serial.println ("Error: DS18B20 not found - check wiring/pull-up resistor.");
24 } else {
25 Serial.print ("Temperature: "); Serial.print (tempC); Serial.println (" C");
26 }
27
28 delay (1000 );
29 }
1 //ekostra.com
2 //electronics store in egypt
3 //+201008896258
4
5 // OneWire data pin D4 on ESP8266. Needs a 4. 7k pull-up resistor between data and VCC.
6 #include <OneWire.h>
7 #include <DallasTemperature.h>
8
9 #define ONE_WIRE_BUS D4
10 OneWire oneWire(ONE_WIRE_BUS);
11 DallasTemperature sensors(&oneWire);
12
13 void setup () {
14 Serial.begin (115200 );
15 sensors.begin();
16 }
17
18 void loop () {
19 sensors.requestTemperatures();
20 float tempC = sensors.getTempCByIndex(0 );
21
22 if (tempC == DEVICE_DISCONNECTED_C) {
23 Serial.println ("Error: DS18B20 not found - check wiring/pull-up resistor.");
24 } else {
25 Serial.print ("Temperature: "); Serial.print (tempC); Serial.println (" C");
26 }
27
28 delay (1000 );
29 }
1 //ekostra.com
2 //electronics store in egypt
3 //+201008896258
4
5 // OneWire data pin PB4 on STM32. Needs a 4. 7k pull-up resistor between data and VCC.
6 #include <OneWire.h>
7 #include <DallasTemperature.h>
8
9 #define ONE_WIRE_BUS PB4
10 OneWire oneWire(ONE_WIRE_BUS);
11 DallasTemperature sensors(&oneWire);
12
13 void setup () {
14 Serial.begin (115200 );
15 sensors.begin();
16 }
17
18 void loop () {
19 sensors.requestTemperatures();
20 float tempC = sensors.getTempCByIndex(0 );
21
22 if (tempC == DEVICE_DISCONNECTED_C) {
23 Serial.println ("Error: DS18B20 not found - check wiring/pull-up resistor.");
24 } else {
25 Serial.print ("Temperature: "); Serial.print (tempC); Serial.println (" C");
26 }
27
28 delay (1000 );
29 }
1 //ekostra.com
2 //electronics store in egypt
3 //+201008896258
4
5 // OneWire data pin 2 on Raspberry Pi Pico. Needs a 4. 7k pull-up resistor between data and VCC.
6 #include <OneWire.h>
7 #include <DallasTemperature.h>
8
9 #define ONE_WIRE_BUS 2
10 OneWire oneWire(ONE_WIRE_BUS);
11 DallasTemperature sensors(&oneWire);
12
13 void setup () {
14 Serial.begin (115200 );
15 sensors.begin();
16 }
17
18 void loop () {
19 sensors.requestTemperatures();
20 float tempC = sensors.getTempCByIndex(0 );
21
22 if (tempC == DEVICE_DISCONNECTED_C) {
23 Serial.println ("Error: DS18B20 not found - check wiring/pull-up resistor.");
24 } else {
25 Serial.print ("Temperature: "); Serial.print (tempC); Serial.println (" C");
26 }
27
28 delay (1000 );
29 }
Project Notes: OneWire digital temperature probe. Needs a 4.7k pull-up resistor between DATA and VCC.