This sealed digital temperature probe lets you precisely measure temperatures in wet environments with a simple 1-Wire interface. The DS18B20 provides 9 to 12-bit (configurable) temperature readings over a 1-Wire interface, so that only one wire (and ground) needs to be connected from a central microprocessor.
Note: The pinout for this sensor is as follows: RED=Vcc BLACK=GND WHITE=SIG
This website shows a decent diagram of how to use the pull-up resistor. https://create.arduino.cc/projecthub/TheGadgetBoy/ds18b20-digital-temperature-sensor-and-arduino-9cc806
The current wire colors on the temperature sensor should be:
RED=Vcc BLACK=GND WHITE=SIG
Previously, the wire colors indicated a different connection => https://www.sparkfun.com/products/11050#comment-52a60f8cce395f052a8b456a .
We also don’t have any information on the temperature rating of the round plastic temperature cover that it can handle. We have not tested it under those conditions before. We tried looking at the manufacturer’s page and it doesn’t look like they have tested it under extreme conditions.
If it requires power, you need to know how much, what all the pins do, and how to hook it up. You may need to reference datasheets, schematics, and know the ins and outs of electronics.
Skill Level: Rookie - You may be required to know a bit more about the component, such as orientation, or how to hook it up, in addition to power requirements. You will need to understand polarized components.
See all skill levels
Based on 25 ratings:
4 of 4 found this helpful:
Just took it out of the box. Sure would be nice if there was a little piece of paper that told which wire was which. I'm going to guess: Red = V+ Black = GND White = Data But why make me guess?
3 of 3 found this helpful:
I was emailed by SFE to write a review on this sensor. I had wired it (I thought) per the instructions and it didn't work. I read the data sheet on the internal part and it seemed to suggest that a pullup resistor was only needed if the part was scavenging power from the data line. Since I was giving it 5v on the red wire, I didn't think that applied to me. After entering my initial (unhappy) review, I read some of the other reviews. I didn't see others having (many) problems and one reviewer noted that he had to add a "10k pullup". I did that and it worked! I'm now happy :-) and will try to figure out how to run 2 sensors off a single Arduino port.
Have you contacted our technical support department @ email@example.com - they are usually pretty good at getting things like this working, and if they can't help you get it working they can help you setup a replacement sensor for you.
3 of 3 found this helpful:
The example code SparkFun supplies is not the best, but with a bit of tweaking it could work okay. I would much rather suggest this library as it also supports multiple sensors (and does not try to use some LCD display): https://github.com/milesburton/Arduino-Temperature-Control-Library
Also, the standard One Wire library in the Arduino Library Manger is required.
This was my first actual experience with 1-Wire. The description seems to indicate that "no external components are needed" and you just need to wire it up and go. Not exactly. A pull up resistor is required between the white data line and red power line. I threw a 10k in there, but I have seen lower values used. For whatever reason, I was unable to get the AVR internal pull up to work with it.
The nice thing about 1-Wire and this component is you can put a bunch of these all on just one pin. They each have a 64 bit unique address (which you need to "discover"). I was able to get 3 sensors going by connecting power, ground, and all the data lines to to Pin 7, for example.
1 of 2 found this helpful:
Easy to connect got it working in less than 30 minutes.
0 of 1 found this helpful:
This is a great encapsulation of the DS18B20. We would buy it in the thousands if we could get a data sheet for it for UL. I have been told there is no data sheet available so we will have to use another device.
Easy to connect and very sturdy. Keep in mind you have to allow for the thermal characteristics of the plastic coating. Very flexible cable
Makes it super easy to measure temperature.. 1 wire bus is sweet too..
Most of the time, this sensor returns the correct temperature, but... (1) About 1 in every 30 readings, the sensor doesn't respond to the 1-Wire device search. (2) About 1 in every 50 readings, the sensor returns 65535. (3) About 1 in every 100 readings, the sensor returns a reading 0-20C off from the actual temperature.
These are usually pretty solid little units. If it seems to be acting inconsistently, I'd recommend getting in touch with our tech support team. They should be able to help you out.
Nearly perfect. Sturdy construction. Very easy to configure for use with the Raspberry Pi... maybe 5-10 min max. This sensor requires shielding in order to be used outdoors, but that's not a big deal. My only disappointment is the cable length is short. It'd be great if it came in different sizes.
These work great and I like the 6' lengths. I've had problems reading 3 shorter ones I bought from Adafruit.
These temperature sensors are very easy to hook up, and the measurements they give are accurate.
Quick, and easy installation and operation
I used to think that this was too expensive until I realized how long it makes me to make them myself and now think it is well worth the price.
I am using these to monitor the temperature in a bread proofing box - one embedded in an electrically heated layer of bricks, and one in a pan of water which gives me a warm moist environment for raising bread. It's powered by a PICAXE 18M2+ processor with the AXE133Y OLED display, and switches power (120 VAC) off and on to the 150 watt snow-melt cable embedded in the bricks.
I have tested them with my RaspberryPi and work great!
The sensor was easy to get connected and begin reading. It has continually provided consistent temperature readings while submerged in water.
Very accurate temperature sensor and very easy to setup and use. Using with an Arduino Uno for now.
I use this sensor with the esp8266 "thing" and it's been really easy to do with onewire. I use this sensor on a saltwater aquarium, and it looks really well sealed, so I'm not concerned about the exposure to a more corrosive environment.
There is one important detail missing, 4.7K pull up resistor for the data wire. The sensor will not work otherwise.
Once this is done the sensor works perfectly.
This works perfect on my Raspbery Pi wether station! It have beed running 3 years now, taking the temperature every 15 min and not a single problem. I have ordered one more to go with a wether station a other place.
These are excellent and reliable. Be careful to size your pullup resistor appropriately. I had a resistor 2k too small, and the probes worked ok with it but it may have put strain on them and they eventually stopped reporting accurate temps. Fixing the resistor size got the accuracy back.
Also, Sparkfun goes seriously above and beyond the call in providing tech support and even replacement parts. Super super impressed.
I'm very sorry to hear that! We've not heard of one of these failing in this manner before. Someone from our support department will be contacting you shortly to help you with this.
The first sensor I received was dead on arrival, however a Sparkfun responded quickly and sent a replacement within a couple day with free two day shipping! Fantastic service and the second sensor worked perfectly. In fact, I am ordering another! Great for aquarium or other applications with a long cable and easy setup.