Send the contents of a file (`data.txt`), by reading from `stdin` and send the entire input as a message and publish it to `sensors/temperature` topic
mosquitto_pub -t sensors/temperature -s < data.txt