MQTT subcribe to variable Photon

Hi There !
Has anyone been able to run the code for Particle Photon that is published in the following link ?
I’m talking about subscribing to a variable

https://help.ubidots.com/connect-your-devices/connect-a-particle-device-to-ubidots-over-mqtt

Thank you.