Also I thank you for your reply and links.
This is a part of more complex device (see my query here, the schema is now obsolete). We want to use RPi 3 model B and Arduino (as ADC converter of voltage because it gives (around 0 - 1 V)) much better results than 12-Channel I2C 0-10V). For example, we bought for measuring of temperature these thermocouples: type K Ø1,0 NL50 and for humidity DKRF417 Pressure Resistant Humidity Probe.
Certainly we’ll use or inspire from your posted blog where you use DS18B20 sensor
About the ball valve, I’m looking for something like this for 24 VDC, L port.