Send a data on a specific time from NodeMCU to Node-Red via MQTT using RTC

how to send a message to node-red. And before this i've try how to send a sensor data to node-red, and it worked, so im using the same connection and publish code