I use a ds18b20 waterproof temperature sensor and an esp32 module.
Schematic in normal mode on the picture:
enter image description here
(The only diffe