 
 byte sleep_mode = SLEEP_MODE_PWR_SAVE;
 int parsed_val = 0;
-byte solar_val = 64; // Temporary half value
+int solar_val = 4000; // 12bit DAC
 volatile byte wd_isr = WD_DO_STUFF;
 
 

        
        if (comma == 5) {
          parsed_val = val;
          solar_val = map(val, 0, 10000, 0, 255);
          
          
          // Print the solar reading

  analogWrite(DEBUG_LED_PIN, DEBUG_LED_PWM_AWAKE);
  
} 

void setVoltage(int output)
{
  Wire.beginTransmission(DAC_ADDRESS);
  Wire.write(DAC_CMD_WRITEDAC);
  Wire.write(output / 16);                   // Upper data bits          (D11.D10.D9.D8.D7.D6.D5.D4)
  Wire.write((output % 16) << 4);            // Lower data bits          (D3.D2.D1.D0.x.x.x.x)
  Wire.endTransmission();
}
