How to decode the raw value in MQTT?

I received my gateway yesterday and am successfully sending encoded sensor data via MQTT to Mosquitto. If you’d be willing to share your pyscript code with me as well I’d really appreciate it - thanks!