# DS18B20 Multiplier and Offset

**URL:** <https://forum.digikey.com/t/ds18b20-multiplier-and-offset/22837>\
**Category:** Sensors Transducers\
**Tags:** analog-devices-inc, sensors-transducers, automation-and-control\
**Created:** [June 6, 2022, 9:02pm UTC](https://forum.digikey.com/t/ds18b20-multiplier-and-offset/22837 "2022-06-06T21:02:08Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![gdieter](https://avatars.discourse-cdn.com/v4/letter/g/f08c70/32.png) [@gdieter](https://forum.digikey.com/u/gdieter)\
**Post date:** [June 6, 2022, 9:02pm UTC](https://forum.digikey.com/t/ds18b20-multiplier-and-offset/22837/1 "2022-06-06T21:02:08Z")

</div>

Hi all - I’m pretty new to this so I apologize if this is common knowledge. I have a DS18B20 temperature sensor and a Campbell CR1000x. I am reading the sensor using VoltSE ([https://help.campbellsci.com/crbasic/cr1000x/#Instructions/voltse.htm#kanchor110](https://help.campbellsci.com/crbasic/cr1000x/#Instructions/voltse.htm#kanchor110)) in the CrBasic, which calls for a multiplier and offset to adjust the values ([Calculating Multipliers and Offsets](https://www.campbellsci.asia/calculating-multipliers)). I was wondering if these sensors had common multipliers and offsets, or if this is something I can determine on my own using a reference temperature and some controlled temperatures?

---

<div class="post-metadata">

**Author:** ![RobertCNelson](https://sea2.discourse-cdn.com/digikey/user_avatar/forum.digikey.com/robertcnelson/32/12_2.png) [@RobertCNelson](https://forum.digikey.com/u/RobertCNelson)\
**Post date:** [June 6, 2022, 9:19pm UTC](https://forum.digikey.com/t/ds18b20-multiplier-and-offset/22837/2 "2022-06-06T21:19:21Z")

</div>

Hi @gdieter , Sadly the DS18B20 is not an Analog output like the Cr1000x “VoltSE” function is looking for… The DS18B20 communicates over 1-Wire interface

> **[1-Wire](https://en.wikipedia.org/wiki/1-Wire)**
>
> 1-Wire is a device communications bus system designed by Dallas Semiconductor Corp. that provides low-speed (16.3 kbit/s) data, signaling, and power over a single conductor.
> 1-Wire is similar in concept to I²C, but with lower data rates and longer range. It is typically used to communicate with small inexpensive devices such as digital thermometers and weather instruments. A network of 1-Wire devices with an associated master device is called a MicroLAN. The protocol is also used in small electr...

 ![1Wire](https://global.discourse-cdn.com/digikey/original/3X/f/7/f75225caa7c5cdbcbe50aef4fea21b735555c33a.png)

The DS18B20 will convert it’s measured Reading to a Digital Encoding and transmit that over the 1-Wire interface… Looking at the CR1000x, i don’t see a 1-wire module…

I wonder does Campbell have an external convertor module to convert the 1-Wire interface to something it can understand???

Edit, not looking good on their forum: [Search Results:](https://www.campbellsci.com/search?type=Forum&q=one-wire)

Regards,

---

<div class="post-metadata">

**Author:** ![gdieter](https://avatars.discourse-cdn.com/v4/letter/g/f08c70/32.png) [@gdieter](https://forum.digikey.com/u/gdieter)\
**Post date:** [June 6, 2022, 9:34pm UTC](https://forum.digikey.com/t/ds18b20-multiplier-and-offset/22837/3 "2022-06-06T21:34:25Z")

</div>

Hi @RobertCNelson, thanks so much for the speedy reply. So this is the actual sensor I am using ([https://www.amazon.com/HiLetgo-DS18B20-Temperature-Stainless-Waterproof/dp/B00M1PM55K/ref=sr\_1\_3?dchild=1&keywords=DS18B20&qid=1634065847&sr=8-3](https://www.amazon.com/HiLetgo-DS18B20-Temperature-Stainless-Waterproof/dp/B00M1PM55K/ref=sr_1_3?dchild=1&keywords=DS18B20&qid=1634065847&sr=8-3)). Admittedly I don’t know if it is a Digi-Key sensor or not…the folks at Campbell sent me this wiring chart (below) and information to get me started with the CR1000x, and then directed me here for determining mult. and offset. Does this DS18B20 operate over the same 1-Wire interface? I currently have the sensor connected and reading values using the 1H and circled ground port, and the values are showing up in the Campbell software (3rd image). I have applied some preliminary multipliers and offsets from some test values just to see how close I am and it’s about a degree off…not sure if the units of the bottom reading are actually volts though, maybe millivolts?

 ![image](https://global.discourse-cdn.com/digikey/original/3X/8/e/8e3de63ed85435661ed5efaf815109c69c80ae39.png)

 ![image](https://global.discourse-cdn.com/digikey/original/3X/d/9/d93acae9b8c11ed9374e56218ee4d3a2b9f1cb8c.jpeg)

 ![image](https://global.discourse-cdn.com/digikey/original/3X/a/c/ac30c7cc301c2c36ef575c0d7ada632a9a83dfdd.png)

---

<div class="post-metadata">

**Author:** ![RobertCNelson](https://sea2.discourse-cdn.com/digikey/user_avatar/forum.digikey.com/robertcnelson/32/12_2.png) [@RobertCNelson](https://forum.digikey.com/u/RobertCNelson)\
**Post date:** [June 6, 2022, 9:40pm UTC](https://forum.digikey.com/t/ds18b20-multiplier-and-offset/22837/4 "2022-06-06T21:40:10Z")

</div>

> [@gdieter](#):
>
> So this is the actual sensor I am using ([https://www.amazon.com/HiLetgo-DS18B20-Temperature-Stainless-Waterproof/dp/B00M1PM55K/ref=sr\_1\_3?dchild=1&keywords=DS18B20&qid=1634065847&sr=8-3](https://www.amazon.com/HiLetgo-DS18B20-Temperature-Stainless-Waterproof/dp/B00M1PM55K/ref=sr_1_3?dchild=1&keywords=DS18B20&qid=1634065847&sr=8-3)). Admittedly I don’t know if it is a Digi-Key sensor or not…the folks at Campbell sent me this wiring chart (below) and information to get me started with the CR1000x, and then directed me here for determining mult. and offset. Does this DS18B20 operate over the same 1-Wire interface

That is a classic DS18B20, it’s a really nice sensor, a lot of 3rd party manufactures do the over molding and the extended WaterProof wiring…

This sensor is: [https://www.maximintegrated.com/en/products/sensors/DS18B20.html](https://www.maximintegrated.com/en/products/sensors/DS18B20.html)

Is sadly only Digital, the ‘Analog’ values you are seeing are pure noise from the 1-wire communications bus…

Regards,

---

<div class="post-metadata">

**Author:** ![gdieter](https://avatars.discourse-cdn.com/v4/letter/g/f08c70/32.png) [@gdieter](https://forum.digikey.com/u/gdieter)\
**Post date:** [June 6, 2022, 9:46pm UTC](https://forum.digikey.com/t/ds18b20-multiplier-and-offset/22837/5 "2022-06-06T21:46:52Z")

</div>

Cheers, I’ll reach out to Campbell and see what they have to say! 🙂

---

<div class="post-metadata">

**Author:** ![gdieter](https://avatars.discourse-cdn.com/v4/letter/g/f08c70/32.png) [@gdieter](https://forum.digikey.com/u/gdieter)\
**Post date:** [June 7, 2022, 1:15pm UTC](https://forum.digikey.com/t/ds18b20-multiplier-and-offset/22837/6 "2022-06-07T13:15:54Z")

</div>

I reached out to Campbell with this info and they mentioned the C1 port can read an SDI12 sensor…do you know if the DS18B20 is an SDI12 sensor?

---

<div class="post-metadata">

**Author:** ![RobertCNelson](https://sea2.discourse-cdn.com/digikey/user_avatar/forum.digikey.com/robertcnelson/32/12_2.png) [@RobertCNelson](https://forum.digikey.com/u/RobertCNelson)\
**Post date:** [June 7, 2022, 1:40pm UTC](https://forum.digikey.com/t/ds18b20-multiplier-and-offset/22837/7 "2022-06-07T13:40:09Z")

</div>

Hi @gdieter Nope, the DS18B20 is NOT an SDI12 sensor. The DS18B20 is a 1-Wire based interface.

Looking at the SDI12 spec, it shares more in-common with RS-232, but operating on a single wire.

While 1-Wire, is more in concept to I2C…

Why did you choose the DS18B20 for your application? Based on the capabilities of the CR1000x, i would instead look a pure Analog based Temp Sensor.

Regards,

---

<div class="post-metadata">

**Author:** ![gdieter](https://avatars.discourse-cdn.com/v4/letter/g/f08c70/32.png) [@gdieter](https://forum.digikey.com/u/gdieter)\
**Post date:** [June 7, 2022, 1:42pm UTC](https://forum.digikey.com/t/ds18b20-multiplier-and-offset/22837/8 "2022-06-07T13:42:35Z")

</div>

Fair question, forgot to mention this up top…we just had a couple of these lying around that a previous researcher was looking into using with an Arduino but I don’t think they got it working that way before they needed to deploy a sensor. I was just looking into the compatibility of the CR1000x and the DS18B20 to see if we needed to purchase new sensors or could make something work with what we already had.

---

<div class="post-metadata">

**Author:** ![RobertCNelson](https://sea2.discourse-cdn.com/digikey/user_avatar/forum.digikey.com/robertcnelson/32/12_2.png) [@RobertCNelson](https://forum.digikey.com/u/RobertCNelson)\
**Post date:** [June 7, 2022, 1:49pm UTC](https://forum.digikey.com/t/ds18b20-multiplier-and-offset/22837/9 "2022-06-07T13:49:02Z")

</div>

If you still have the Arduino, you could use that to convert that sensor’s data from OneWire to…

[https://www.pjrc.com/teensy/td\_libs\_OneWire.html](https://www.pjrc.com/teensy/td_libs_OneWire.html)

Thinking, either RS-232, SPI or I2C… It’s really up to you…

Regards,
