There are already temperature and humidity sensors commercially available in the market for both industrial and home solutions.
One of the advantages about choosing a complete sensor solution rather than individual and standalone sensors is that sensor-based solutions are well packaged and come with extensive documentation and support. For example, the following is a TEMPERATURE-HUMIDITY SENSOR + EXTRAS known as DHT22: