   
   set_sleep_mode(SLEEP_MODE_PWR_DOWN);
   cli();
-  ADCSRA = 0;            // turn off ADC
+  
   power_all_disable();  // power off ADC, Timer 0 and 1, serial interface
   sleep_enable();
   sleep_bod_disable();

  if (!ldr_val) {
    // Too dark (LDR is reading low)
    // Let atmega328p know it should be asleep
    digitalWrite(PIN_WAKEUP_MASTER, LOW);
    
    // Sleep untill enough light
    goToSleep();
  } else if (vcc >= 3300) {
    // Tell the Atmega328p that it should be awake now.
    digitalWrite(PIN_WAKEUP_MASTER, HIGH);
  }
  
  

//                  +----+
// see http://www.gammon.com.au/forum/?id=11488&reply=9#reply9


 
#include <util/delay.h>
