1-Wire, DS18B20... How do I search the bus?

I have created a new version of OneWire which fixes long-standing bugs in the I/O code. Robin James's search function was merged, and I made several small optimizations, mostly to eliminate unnecessary RAM usage. After a few emails with the authors I could contact, I'm calling this version 2.0, to distinguish it from the many other buggy copies online.

http://www.pjrc.com/teensy/td_libs_OneWire.html

If you've used any prior versions of OneWire, even with Robin James's search function merged, you almost certainly experienced occasional CRC errors or devices not responding to the search, no matter how good your wiring and pullup resistor are. Version 2.0 fixes these long-standing problems.