Arduino Mega send data to ESP8266-01 then ESP forward to RPI (MQTT)

PaulS:
Even better, though, would be to publish() only when the temperature or humidity changes.

I would definitely like to do that when I get the data streaming to run better. That would be great when I get it set up in my garden and beehive.