 #define WD_DO_STUFF 8 // How many watchdog interupts before doing real work (same a sensor).
 
 
-
+byte sleep_mode = SLEEP_MODE_PWR_SAVE;
 int parsed_val = 0;
 byte solar_val = 64; // Temporary half value
 volatile byte wd_isr = WD_DO_STUFF;

    Serial.flush();
    
    // Sleep 'till the next message is due
    goToSleep(); 
  }

}

void digitalPotWrite(int address, int value) {
  // take the SS pin low to select the chip:
  digitalWrite(POT_CHIP_SELECT, LOW);

    
    
    Serial.println(); 
        
    Serial.print(parsed_val);
    Serial.print(" -> ");
    Serial.println(solar_val); 
    
    //digitalPotWrite(POT_ADDRESS, solar_val);
    analogWrite(PWM_PIN, solar_val);
    
    // Turn off message indicator
    analogWrite(DEBUG_LED_PIN, DEBUG_LED_PWM_AWAKE);
