     
     display.display();
   }
+  
+  LowPower.powerDown(SLEEP_30MS, ADC_OFF, BOD_OFF);
   
 }
 

#include <Adafruit_SSD1306.h>
#include <RTClib.h>
#include <RTC_DS1307.h>
#include "constants.h"
#include "tune.h"


   
    int voltageADCReading = analogRead(VOLTAGE_MEASURE_PIN);
     //Multiply 2 as we are are using a half voltage divider
    int batteryMilliVolt = ((long) voltageADCReading * 2 * VOLTAGE_OF_VCC_MV) / ADC_PRECISION;

    writeDateTimeToDisplayBuffer(now, blinkOn);
    writeAlarmToDisplayBuffer(blinkOn);
