   attachInterrupt(digitalPinToInterrupt(BUTTON_INT), button_down_isr, FALLING);
   LowPower.powerDown(SLEEP_FOREVER, ADC_OFF, BOD_OFF);
 
-  Serial.println("Wake up....");
-  reset_esp();
+  if (bbutton_downp_isr)
+  {
+    Serial.println("Wake up....");
+    reset_esp();
+  }
 }
 
 void setup()


void button_down_isr()
{
  startMiils = millis();
  detachInterrupt(digitalPinToInterrupt(BUTTON_INT));
  attachInterrupt(digitalPinToInterrupt(BUTTON_INT), button_up_isr, RISING);

uint16_t pir_interuptCount = 0;
volatile bool haveData = false;
volatile bool bbutton_up_isr = false;
volatile bool bbutton_downp_isr = false;

unsigned long duration;

