I've some trouble with a waterproof DS18B20 sensor.
I use an arduino uno and I did an application to read temperature values (in fact I used tutorials ;))
Anyway, if I plug my DS18B20 very close of my arduino interface, I can read values. But I put my DS18B20 far of my arduino (about 15 meters), I can't read values because I have an error in this function
if (!ds.search(addr)) {
Serial.println("========= 1-WIRE not found =========");
ds.reset_search();
return false;
}
I wired my DS18B20 with a ground shield cable
How can I do ? Is it possible to do that ? 15 meters is not so far for arduino power supply ?
I am using one of these at 20m and more. I've been using alarm cable as the wire and am not using parasitic power (I use all 3 wires). The arduino onboard power is all I use so that is fine. What resistor value are you using on the 1-wire bus, 4.7k? I find that is a good choice.
You should be able to read a ds18b20 from a distance up to a few hundred meters, although you've got to take care of length (and... weight). Personally I have no problems reading 3 sensors with cat-5 cable at 15, 20 and 25 meters, each connected with a 4 mtr. cat-5 cable and just using parasitic power.
I am doing the same... very reliably. I also had to eventually use a lower value pullup resistor to achieve that reliability after extending my length beyond 30m. I dropped down to 3.3K.