Monitoring temperature and humidity with a Raspberry Pi 3, DHT22 sensor, InfluxDB and Grafana

I recently started looking into ways of monitoring the temperature and humidity in my garage – for two reasons. Firstly, I have my lab workload cluster out there in the form of a Dell C6100, and I’ve noticed with the recent weather that the temperature in there gets…a bit warm. Secondly, I like to brew beer at home, and one of the keys to a good brew is consistent temperature!

I also want to kick the tyres with some new skills – Python, InfluxDB and Grafana all seem pretty useful skills to acquire.

Thanks to Datrium sponsoring the vExpert programme I have a Raspberry Pi 3 lying around at home doing nothing, so I did some reseach and ordered an inexpensive (£6) temperature and humidity sensor, the AM2302, which is based on the DHT22, but with a resistor and pins pre-wired: