Rich Plakas has written a great tutorial on using the simple DHT22 temperature/humidity sensor with the Raspberry Pi in which he sends the readings to online IoT dashboard provider Initial State. He borrows a lot from other code (which he acknowledges) but the results are excellent and the sensor is relatively cheap (that’s just an Adafruit one; cheaper alternatives are available). Take a look at the tutorial here.