 
   attachInterrupt(0, WakeUp, CHANGE);
 
-  for (int thisReading = 0; thisReading < numReadings; thisReading++)
+  for (int thisReading = 0; thisReading < numReadings; thisReading++) {
     readings[thisReading] = 0 ;
+  }
 
   sleepNow();
-
 
 }
 

  if (( MeasuredIsSent == HIGH) && ( mqttMsgSent == HIGH ))
  {
    Serial.println("======> mqtt msg has sent");
    sleepNow();   
  }

  delay(500);

  if ( Measured > 500 )
  {
    Serial.println("======> tilting detected, nemo is on pad");
    /*
    digitalWrite(espnemoIsOnPadPin, HIGH);
    espReset();
