The TASMOTA link provided before ( https://templates.blakadder.com/sonoff_THR320.html ) should work for building a straight DS18B20. It even has a nice photo so you can make out the wire colors. According to the other link, SONOFF decided to put a Integrated Circuit (IC) between the sensor and the c...