Building a smart stem thermostat

Hi guys,

I have a water heater with a mechanical stem thermostat inserted at the bottom.

I want to put a small DS18B20 thermostat on top of it and connect it to a sonoff th16 so I can read the data.

I bought a bunch of DS18B20, a 3.5mm jack terminal and took the wires from an ethernet cable.

Than I connected them according to this info:


I tested the entire installation on to see if it works, but there was no reading and the DS18B20 heated really bad (burned my finger).

Am I missing something? it should be a really simple circuit…

Thanks!
Naor

I’m also interested to see if it’s possible to connect regular DS18B20 sensors to TH16, since the original sensor is unavailable in my country.

Any update on this?
Also regarding your issue, it seems there should be a 4.7k resistor between VCC and Data