Read the statement by Michael Teeuw here.
Fahrenheit to MQTT
I’ve got a program that converts Celsius to Fahrenheit for the ds18b20 temperature probe on a Pi that I’ll be putting outdoors. I’d like to use MQTT to send the output of this program to another PI with a weather station indoors. I’ve got it all setup except I don’t know how to get the output of the program which prints the converted temperature to MQTT. Any help would be appreciated.
The best way for me to do it was to use node-red. Fantastic program for us newbies with little coding experience. Highly recommended. I’m running it on the pi that is sending the values to the MM pi. Works great.