The DS18B20 waterproof sensor for temperature measurement is a pre-wired and waterproofed version of the DS18B20 sensor. Handy for when you need to measure something far away, or in wet conditions. While the sensor is good up to 125°C the cable is jacketed in PVC so we suggest keeping it under 100°C. Because they are digital, you don’t get any signal degradation even over long distances!
The only downside is they use the Dallas 1-Wire protocol, which is somewhat complex, and requires a bunch of code to parse out the communication. If you want something really simple, and you have an analog input pin, the TMP36 is trivial to get going
We toss in a 4.7k resistor, which is required as a pullup from the DATA to VCC line when using the sensor. We don’t have a detailed tutorial up yet but you can get started by using the Dallas Temperature Control Arduino library which requires also the One Wire Library.
- Stainless steel tube 6mm diameter by 30mm long
- Cable is 36″ long / 91cm, 4mm diameter
- Contains DS18B20 temperature sensor
- If your sensor has four wires – Red connects to 3-5V, Black connects to the ground and White is data. The copper wire is soldered to the wire shielding