I need to read the temperature and I do not like to re-invent the wheel so, not the cheapest way, I ordered a DS18B20 from Mouser.
The 08M2 circuit is simple, + to +5v, DQ to leg5 (C.2) with a 4k7 pullup to +5v, GND to 0v.
The code is:
main:
readtemp12 c.2,w1
debug
goto main
The data pin...