DHT22 sensor with data logging

I am using two DHT22 sensors and need data logging of temperature and humidity from those sensors but facing problem in its coding part please help me in resolving this issue 

thankyou