Temperature measurement

have a look at this topic Sending MQTT messages within rate limits