You've got a job on your hands. A company I used to work for built automation systems, one for material-handling and the other to retrofit older machine tools. I did no coding for those systems, but supported the engineers who did. It was all done in SUSE (Linux) due to licensing costs. We had a number of engineers working on both projects, so it must've been expensive.
Knowing nothing of your needs, any advice I can give is limited. You might talk to an HVAC pro about any retrofits they know of, and maybe even new systems. Sales engineers are typically quite knowledgeable and if you play it right, they give away a lot of info.