This arduino scetch exports the sensor readings from the DHT22 to MQTT. I use this scetch together with my MQTT2Prometheus exporter to monitor my room temperature in several rooms.
To set your config, copy the file configvariables.h.dist
to configvariables.h
and edit the values you need.
The docs
directory contains a frizz file for the hardware setup. The breadboard setup looks like this: