 digitalWrite(8, LOW);
  Wire.begin(7);
  Wire.onRequest(requestEvent); 
- Wire.onReceive(receiveEvent);  
+ Wire.onReceive(receiveEvent);
+  int countdownMS = Watchdog.enable();   
   Serial.println("Setup complete"); 
 }
 void loop() {
+  Watchdog.reset();
   //check if something was received (could be an interrupt from the radio)
   if (radio.receiveDone())
   {
+  Watchdog.reset();
   int sensorIndex = 1;
   int sensorCharIndex = 0;
   int charIndex = 0;

      // 13: humidityDHT22 6
      
void receiveEvent(int howMany){
  int c;
  c = Wire.read(); // receive byte as a character
  //Serial.print("Got: ");

   Wire.write(temp1);   
    
  } else {

    if((millis() - lastSentMillis) < 10000) { // if  data was sent less than ten seconds ago then restart the arduiono
      Serial.println("Sending bad data, restarting in 8 seconds...");
      while(1) {
        int isCrashed = 1;
        delay(1000);
        }
    }
    
    Serial.print("Index: ");
    //String data = String("error");
    int sensorIndex = dataToSend - 10;
