Sensirion library for SHT7x humidity sensor
You simply create a second instance of the object with different pins and store the result in a different set of variables. Any extra logic of when to do what is purely down to you.