ESPhome DS18B20 2 pin wiring

Anyone know how to wire this type of DS18B20 sensor to an esp32 board?

They usually have three wires, gnd, positive and data but this type has just two wires not three

My wild guess is that because it’s not DS18B20.
Could be NTC 10K Ohm for example…

Could be, it’s not what I ordered anyway and was wondering if I can still use it.
Upon further research apparently 2 pin is a supported function, something called parasitic power, data and power are merged.
Going to just order the right thing, apparently rhese are more prone to noise.

Find me a ready made DS-probe that is wired for parasitic power and I change my assumption.
If you have multimeter, measure resistance between the two wires.

I’d agree that most encapsulated 1-Wire sensors like the DS18x20 have three wires, although (technically) they can be operated with a 4.7k pull-up resistor on the data line and ground (datasheet Figure 4, rather than Figure 5):

Dallas (now Maxim) called it the 1-Wire bus for a reason (and marketing ignored the ground wire!)

As has been said, the simple test is a multimeter set to ohms, and a cup of hot water - if the resistance changes significantly with temperature, it’s a thermistor (analogue) not a 1-wire sensor (digital).

The image looks more like the thermistor analogue sensor used on several temperature controller modules.