Multiple DS18B20 with Photon

OK, to get an idea of the final goal, you can have a look here

I plan to use one Photon to control the HVAC system for both homes.
It will not only control the heating system but also the ventilation system and sanitary water distribution.
For the ventilation system, I will use DHT22 temp/hum sensors, and that’s already clear for me and tested.

Now, these DS18B20 sensors will be only used for measuring water temperatures in boilers (stratification) and pipes, in combination with the pumps and electromagnetic valves, controlling the flow.

Here is the “architecture” for my temperature sensor buses that I have in mind:

I plan 3 different buses on different I/O pins.

=> So, what I like to do (as described earlier) is address from the loop a particular sensor, using as parameters the I/O pin (=bus) and the sensor name like described higher.
After having the relevant temperature readings, I can control a particular valve or pump.

Then move on to the next element in a similar way.
In this way the control logic remains well organized and clear for me…

I hope my background explanation is understandable, especially why I am trying to do things a little differently…
(Sorry, I’m not an experienced C/C++ programmer, but electromechanical engineer with Particles as hobby…)

Thanks for your thoughts!
:hand: :older_man: