   digitalWrite(espResetPin, LOW);
   delay(10);
   digitalWrite(espResetPin, HIGH);
+
+  IsEspReseted = HIGH;
 
   digitalWrite(ledPowerPin, LOW);
   delay(100);

      Serial.print(Measured);
      Serial.print("   ==> ");

      if (( Measured > 500 ) && ( Measured > (average - 500)))
      {
            total = total - readings[indexof];
            readings[indexof] = Measured;


  Serial.println("Wake up at sleepNow");
  Serial.println(millis() - startMills);

  MeasuredIsSent = LOW;
  Attempt = 0;

  check_pad_status();
}
