low power arduino mini pro

Hi all first tell you im a newbie so i just learning arduino. i want to do a small project. there for i want to make below code to low power consuming. please some one help me .

im going to use 2xAAA battery. in Vcc pin . now my code take 17mA. arduino mini pro

pin 2 has reed switch. when it trigger 13 pin give led blink 10 S. normally door is closed when it closed arduino should sleep.

Help me to do my project.

////////////////////////////////////

const int buttonPin = 2;
const int ledPin =  13;
byte ledFlag = 0;
byte enableFlag = 0;
unsigned long ledTime;
unsigned long flashTime;
const unsigned long flashRate = 500UL;
int buttonState = 0;

void setup()
{

  pinMode(ledPin, OUTPUT);
  pinMode(buttonPin, INPUT_PULLUP);

}

void loop()
{


  buttonState = digitalRead(buttonPin);
  if (buttonState == HIGH && ledFlag == 0)
  {
    digitalWrite(ledPin, HIGH);
    ledFlag = 1;
    enableFlag = 1;
    ledTime = millis();
    flashTime = millis();
  }
  if (enableFlag == 1 && millis() - ledTime <= 4000UL)
  {
    if (millis() - flashTime >= flashRate)
    {
      flashTime = millis();
      digitalWrite(ledPin, !digitalRead(ledPin));
    }
  }
  else
  {
    enableFlag = 0;
    digitalWrite(ledPin, LOW);
  //  LowPower.powerDown(SLEEP_8S, ADC_OFF, BOD_OFF);
  }
  if (buttonState == LOW)
  {
    ledFlag = 0;
    enableFlag = 0;
    digitalWrite(ledPin, LOW);
    LowPower.powerDown(SLEEP_8S, ADC_OFF, BOD_OFF);

  }
}

Is your Arduino a 3.3V model? If you, why are you planning to power it with less than 3.0V?

The code you posted does something. Not a clue as to what it does.
You expect the code you posted to do something. Not a clues as to what you expect or how that differs from what actually happens.

yes . actually this is a cricket bail. i have one option to power it AAA battery or a 12v 23A battery but regulator draw a big current .

can anyone tell me how to use sleep code on this ????

only lowpower.h?

yes. i am a newbie so any sleep or wake up code?

thanks

Just to be clear, even if your processor is asleep, you still need to get rid of the LED and the voltage regulator to see the power savings.