DS18B20 Temperature Sensor

  • Digital temperature sensor with 1-wire interface
  • Measures temperatures from –55°C to +125°C
  • High accuracy ±0.5°C over a wide range
  • Requires only one data line for communication
  • Can connect multiple sensors on a single bus
  • Waterproof versions available for outdoor use
  • Compatible with Arduino, Raspberry Pi, and other microcontrollers

Apple Shopping Event

Hurry and get discounts on all Apple devices up to 20%

45,00 EGP

3 People watching this product now!

Payment Methods:

Description

DS18B20 Temperature Sensor Module is a digital temperature sensor, and you can easily connect it to Arduino with only one 4.7-pound resistor, base 1 – Ground 2 – Output – Base 3 to the positive of the source, with resistance to base 2 Is connected. The connection of this sensor to the Arduino via the 1-wire protocol is established. Therefore, several sensors can be connected only through one common wire to Arduino. The output is digitally accurate to 12 bits. Therefore, the temperature can be measured with a precision of 0.0625 º C.

Applications:
DS18B20 Temperature Sensor is suitable for the cold storage, granaries, storage tanks, telecommunications room, electric power room, cable trough, and other temperature measurement and control areas; bearing, cylinder, textile machinery, air conditioning, and other small space industrial equipment temperature and control; , Refrigerator, freezer, and low-temperature drying oven, etc. heating/cooling pipe calorie measurement, central air conditioning household thermal energy measurement and industrial temperature measurement and control and Many more..

Features:

  1. Digital signal output
  2. 18B20 Temperature Sensor Chip
  3. Resolution adjustment ranges from 9-12 bytes.
  4. Send data via a pin
  5. Temperature measurement ranges: -55°C to +125°C, be accurate to 0.5°C.

Package Includes:

1 x DS18B20 Temperature Sensor Module

🔌
Pin Connections
1 Table
Pin Connections Table 1
BoardSensor PinConnection
DS18B20VCC/GND/DATA3.3-5V / GND / board data pin + 4.7k pull-up to VCC
📟
DS18B20 Temperature Sensor
7 Examples • C/C++ | Boards: Arduino Uno, Arduino Nano, Arduino Mega, ESP32, ESP8266, STM32, Raspberry Pi Pico
DS18B20 Temperature Sensor - Arduino Uno
DS18B20 Temperature Sensor - Arduino Nano
DS18B20 Temperature Sensor - Arduino Mega
DS18B20 Temperature Sensor - ESP32
DS18B20 Temperature Sensor - ESP8266
DS18B20 Temperature Sensor - STM32
DS18B20 Temperature Sensor - Raspberry Pi Pico
📄 File: ds18b20_temperature_sensor_-_arduino_uno.inoArduino Uno
679 characters
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
10OneWire oneWire(ONE_WIRE_BUS);
11DallasTemperature sensors(&oneWire);
12
13void setup() {
14 Serial.begin(115200);
15 sensors.begin();
16}
17
18void 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}
📄 File: ds18b20_temperature_sensor_-_arduino_nano.inoArduino Nano
680 characters
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
10OneWire oneWire(ONE_WIRE_BUS);
11DallasTemperature sensors(&oneWire);
12
13void setup() {
14 Serial.begin(115200);
15 sensors.begin();
16}
17
18void 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}
📄 File: ds18b20_temperature_sensor_-_arduino_mega.inoArduino Mega
680 characters
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
10OneWire oneWire(ONE_WIRE_BUS);
11DallasTemperature sensors(&oneWire);
12
13void setup() {
14 Serial.begin(115200);
15 sensors.begin();
16}
17
18void 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}
📄 File: ds18b20_temperature_sensor_-_esp32.inoESP32
673 characters
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
10OneWire oneWire(ONE_WIRE_BUS);
11DallasTemperature sensors(&oneWire);
12
13void setup() {
14 Serial.begin(115200);
15 sensors.begin();
16}
17
18void 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}
📄 File: ds18b20_temperature_sensor_-_esp8266.inoESP8266
677 characters
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
10OneWire oneWire(ONE_WIRE_BUS);
11DallasTemperature sensors(&oneWire);
12
13void setup() {
14 Serial.begin(115200);
15 sensors.begin();
16}
17
18void 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}
📄 File: ds18b20_temperature_sensor_-_stm32.inoSTM32
677 characters
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
10OneWire oneWire(ONE_WIRE_BUS);
11DallasTemperature sensors(&oneWire);
12
13void setup() {
14 Serial.begin(115200);
15 sensors.begin();
16}
17
18void 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}
📄 File: ds18b20_temperature_sensor_-_raspberry_pi_pico.inoRaspberry Pi Pico
685 characters
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
10OneWire oneWire(ONE_WIRE_BUS);
11DallasTemperature sensors(&oneWire);
12
13void setup() {
14 Serial.begin(115200);
15 sensors.begin();
16}
17
18void 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}
OneWire digital temperature sensor (TO-92 package). Needs a 4.7k pull-up resistor between DATA and VCC.

Specification

Specification

WeightWeight6 g
Dimensions3 × 2 × 1 cm
operating-supply-voltage3 to 5.5 volts
digital-outputResolution 9 to 12 bits
temperature-measurement-ranges-55°C to +125°C, ( accurate to 0.5°C.)
maximum-conversion-time-and-response750 ms

Customer Reviews