This situation is often related with wrong value type, if the bucket gets the first data as number and it receives not a number (NaN) type value, it does not store it.
How can you store a not a number into a int type value? if you run a for loop that writes something into an array, and the iteration goes beyond the array size (for example) it writes according the loop instruction in that memory address (right next the array address), destroying the data and writing into it, then if you read that address as int it could have a NaN value.
Hi @ega, I’m using an Arduino Yun and I’ll try your suggestion.
In the meantime I’ve made some changes to my code and it seems it is not happening anymore.