

The MKE-S15 DS18B20 is a waterproof digital temperature sensor designed for precise and reliable temperature measurements in a wide range of environments. Encased in a stainless steel probe, it is ideal for applications requiring durability and resistance to moisture, such as outdoor weather monitoring, liquid temperature measurement, and industrial processes.
This sensor communicates using the 1-Wire protocol, allowing multiple sensors to be connected to a single data line. Its compact design and waterproof capabilities make it a versatile choice for both hobbyist and professional projects.








The MKE-S15 DS18B20 sensor typically has three wires for connection:
| Wire Color | Pin Name | Description |
|---|---|---|
| Red | VCC | Power supply (3.0V to 5.5V) |
| Yellow | DATA | 1-Wire data line for communication |
| Black | GND | Ground connection |
Below is an example of how to connect the MKE-S15 DS18B20 to an Arduino UNO:
The following code demonstrates how to read temperature data from the DS18B20 sensor using the Arduino IDE. This example uses the DallasTemperature and OneWire libraries, which must be installed via the Arduino Library Manager.
#include <OneWire.h>
#include <DallasTemperature.h>
// Pin connected to the DATA line of the DS18B20 sensor
#define ONE_WIRE_BUS 2
// Initialize the OneWire and DallasTemperature libraries
OneWire oneWire(ONE_WIRE_BUS);
DallasTemperature sensors(&oneWire);
void setup() {
Serial.begin(9600); // Start serial communication at 9600 baud
sensors.begin(); // Initialize the DS18B20 sensor
Serial.println("DS18B20 Temperature Sensor Initialized");
}
void loop() {
sensors.requestTemperatures(); // Request temperature readings
float temperatureC = sensors.getTempCByIndex(0); // Get temperature in Celsius
// Check if the reading is valid
if (temperatureC != DEVICE_DISCONNECTED_C) {
Serial.print("Temperature: ");
Serial.print(temperatureC);
Serial.println(" °C");
} else {
Serial.println("Error: Sensor not detected");
}
delay(1000); // Wait 1 second before the next reading
}
No Temperature Reading:
Incorrect Temperature Values:
Sensor Not Detected:
Intermittent Readings:
Q: Can I connect multiple DS18B20 sensors to the same data line?
A: Yes, the 1-Wire protocol supports multiple sensors on a single data line. Each sensor has a unique 64-bit address for identification.
Q: Is the sensor safe for use in food-grade applications?
A: While the stainless steel probe is waterproof, confirm with the manufacturer if it meets food-grade standards for your specific use case.
Q: Can I extend the cable length?
A: Yes, but long cables may require a lower pull-up resistor value (e.g., 2.2kΩ) and shielded cables to reduce noise.
Q: What happens if the sensor is exposed to temperatures beyond its range?
A: Prolonged exposure to extreme temperatures may damage the sensor or result in inaccurate readings. Always operate within the specified range.
This concludes the documentation for the MKE-S15 DS18B20 Waterproof Temperature Sensor.