a ds18b20 is not a ds18s20 , the code you linked is for a ds18s20. check the data sheets
a ds18b20 does not have or use count_remain, count_per_c at all. there are plenty of examples for either device in the forum but
some do not explicitly state which device they match. caveat emptor
check these scratch pad definitions
Bookmarks