[solved] 'wdt reset' by NodeMCU?

I tried with the following code given and found that there is no error with the code . I found a problem that when i remove data jumpers from ESP8266 NodeMCU, values will update to cloud (all values are zeros), but when i reconnect the jumper wire which receives data from sensors (i am mapping data from UNO to nodeMCU), it is giving as ‘ wdt reset’.
But when i dont use Cayenne library functions, i get serial data from sensors. this doesnt work when i connect to Cayenne

I want your help
Thank you

#include <Wire.h>
#define CAYENNE_PRINT Serial
#include <CayenneMQTTESP8266.h>

// WiFi network info.
char ssid = " ";
char wifiPassword = " ";

// Cayenne authentication info. This should be obtained from the Cayenne Dashboard.
char username = "xxxxx;
char password = “xxxxxxxxx”;
char clientID = “xxx-xxx-xxx-xxx-xxxxxx”;

unsigned long lastMillis = 0;

int data={0,0,0,0,0,0,0,0,0};
int x,y,z,x2,y2,z2,x3,y3,z3;

void setup(void) {
Serial.begin(115200); /* begin serial for debug /
Wire.begin(D1, D2); /
join i2c bus with SDA=D1 and SCL=D2 of NodeMCU */
Cayenne.begin(username, password, clientID, ssid, wifiPassword);
}
void loop(void) {

Cayenne.loop();
if (millis() - lastMillis > 1000) {

lastMillis = millis();
Wire.requestFrom(8, 15); /* request & read data of size 13 from slave */
int i=0;
while(Wire.available()){
int c = Wire.read();
data[i]=c;
i++;
}

x=map(data[0],0,255,-127,127);
y=map(data[1],0,255,-127,127);
z=map(data[2],0,255,-127,127);
x2=map(data[3],0,255,-127,127);
y2=map(data[4],0,255,-127,127);
z2=map(data[5],0,255,-127,127);
x3=map(data[6],0,255,-127,127);
y3=map(data[7],0,255,-127,127);
z3=map(data[8],0,255,-127,127);

Serial.print(x);
Serial.print(“,”);
Serial.print(y);
Serial.print(“,”);
Serial.print(z);
Serial.print(“,”);
Serial.print(x2);
Serial.print(“,”);
Serial.print(y2);
Serial.print(“,”);
Serial.print(z2);
Serial.print(“,”);
Serial.print(x3);
Serial.print(“,”);
Serial.print(y3);
Serial.print(“,”);
Serial.println(z3);

Cayenne.virtualWrite(1, x);
Cayenne.virtualWrite(2, y);
Cayenne.virtualWrite(3, z);
Cayenne.virtualWrite(4, x2);
Cayenne.virtualWrite(5, y2);
Cayenne.virtualWrite(6, z2);
Cayenne.virtualWrite(7, x3);
Cayenne.virtualWrite(8, y3);
Cayenne.virtualWrite(9, z3);
}

}

Hi @amruthrajsagar,

I see the topic title was changed to solved…did you end up solving the issue yourself?

~Benny

I think this was solved over here: [solved] Unable to get data on Cayenne dashboard, please help - #9 by shramik_salgaonkar

Linking in case anyone finds this thread.