How to subscribe to tasmota variables and mem via mqtt?

Show your configuration for the sensor. Format it for the forum correctly.

Show the data received.

Then we can help you.