Thank, but that is kind of strange, since the lib uses bit-banging at python level for reading. I would expect that at bit reading the built-in C function is more reliable. But anyhow: when working with DS18x20 I have seen not-so-rare reading errors. These have to be caught by a try/except clause.I have found that using Robert-HH's 1-wire lib to be more successful
ds18b20 readinig error
Re: ds18b20 readinig error
Re: ds18b20 readinig error
Maybe, I learnt something about throwing exceptions using your code. I didn't go back to the official 1-wire library to verify my new-found knowledge