[SOLVED] How to get value from MQTT

Dear All
I am ready to get value from variable by using MQTT
But, How to receive value 9.9375 from serial:

Message arrived [/v1.6/devices/tu-tru-mau/temperature-xn2/lv] 9.9375

to float temperature ?

Thank a lot

Greetings, you may store that value received in the callback function in a global variable, in that way, you can access it in any part of your firmware.

All the best