ds18b20 and dht22... cant get them to work together

You may make an arrangement to interrupt the MCU at every 2-sec interval; the MCU will go the ISR and will acquire Temperature, Humidity, and etc. whatever is required!