I have an Arduino YUN and 2 sensors attached to it with a water pump.
What I am trying to do is send value from the sensors to Ubidots and at the same time retrieve value from a variable in Ubidots to on and off the water pump.
I have tried sending and retrieving one separate sketches and both works. But when I combine them together, the sending still works but at the line of code : float value = client.getValue(WATERPUMPID);,
the Arduino hangs at that line.
I am wondering if it is possible to do what I am doing, and if it is possible how should I go about doing it.