   
   digitalWrite(LED_DEBUG, LOW);
   
-  // Power down the periferals
-  digitalWrite(PIN_PERIF_POWER, HIGH);
   
   cli();
   

  ADCSRA = old_ADCSRA;
  
  digitalWrite(LED_DEBUG, HIGH);
  
  // Power up the periferals
  digitalWrite(PIN_PERIF_POWER, LOW); // (PNP)
  
} 


#include <VirtualWire.h>

#define LED_DEBUG 13

#define PIN_TX 7         // PD7
#define PIN_TX_POWER 8   // PD8

#define PIN_LM35 6       // PD6
#define PIN_LM35_POWER 5 // PD5

#define PIN_SENSOR_POWER 9       // PB1 (used for both sensors)
#define PIN_SENSOR_THERMISTOR A0 // PC0
#define PIN_SENSOR_SOIL A1       // PC1

#define PIN_SOLAR A5 // PC5


#define SLEEP_FLAG_STAYAWAKE 0  // Dont sleep
#define SLEEP_FLAG_IDLE 1       // Gone to sleep because nothing to do
