Temperature and Humidity in an Afternoon
Connect DHT22 to 3.3V, GND, and a GPIO pin with a 10k pull-up resistor from data to 3.3V. For BME280, use I2C on SDA and SCL with 3.3V and GND. Install Adafruit_DHT or adafruit-circuitpython-bme280, and test a minimal Python script to confirm stable readings before automating anything else.
Temperature and Humidity in an Afternoon
Use paho-mqtt to publish JSON data like temperature and humidity to a Mosquitto broker topic, for example home/lab/thermo. Add timestamps and sensor names. A simple loop every sixty seconds gives smooth charts without stressing the Pi. Comment below if you want a ready-to-run script template.