Try these minor alterations
void callback(char* topic, byte* payload, unsigned int length) {
char p[length + 1];
memcpy(p, payload, length);
p[length] = '\0';
Serial.write(p, length);
Serial.println(topic);
}
And I’ds low down loop()
a bit or at least not push data every millisecond to Ubidots
BTW, with SOS faults the number of blinks between the SOS patterns is important info for troubleshooting.
@jade7272, when posting code, wrap it in a set of these for better formatting
```cpp
// your code here
I have corrected that for you. And for further hints on the subject have a look here
https://community.particle.io/t/forum-tips-and-tricks/3999