         
         if (comma == 5) {
           parsed_val = val;
-          solar_val = map(val, 0, 10000, 0, 255);
+          solar_val = map(val, 0, 10000, 0, 4095); // 0xFFF 12 bit DAC
           
           
           // Print the solar reading

  analogWrite(DEBUG_LED_PIN, DEBUG_LED_PWM_AWAKE);
  
} 


byte sleep_mode = SLEEP_MODE_PWR_SAVE;
int parsed_val = 0;
int solar_val = 4000; // 12bit DAC
volatile byte wd_isr = WD_DO_STUFF;


