There are many versions of the library on that page. Which one did you download?
The simple example sketch includes OneWire.h. Yours does not. That's a clue...
There are many versions of the library on that page. Which one did you download?
The simple example sketch includes OneWire.h. Yours does not. That's a clue...