Small 3-wire temperature and humidity sensor
(Source : Adafruit)
You can use the Adafruit DHT library.
DHT22 and AM2302 often have a pullup already inside, but it doesn't hurt to add another one !
Use the basic example from Adafruit library