Raspberry Pi - MQTT for IoT
What output do you expect when running
mosquitto_pub -h localhost -t sensors/temperature -m "22.5" and simultaneously running mosquitto_sub -h localhost -t sensors/temperature in another terminal?