How to control servo motor using temperature sensor(DHT 22) ?

I am a beginner at using these kind of stuff. and im at lost at what to do. Can someone help me? especially the source code and the pinnings of servomotor and DHT 22?

There are libraries online for both. These will include sample sketches that you can run and read.

Should I just use both of the libraries? like combining them?