[SOLVED] How to send digital data into Ubidots using Arduino with SparkFun ESP8266

I see on the internet that everyone sends analog data to ubidots, however i was wondering if it was possible to send digtal data from the digital pins of my arduino to ubidots using esp8266. Also if it is possible could anyone teach me the commands to do it. Thank you very much.

You can reference this example to know how to send data to Ubidots using an ESP8266, you should read a digital input instead of an analog one and to cast it to a float type variable.

All the best