         
         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

 Receive the sensor's transmission, then display it on the analogue meter.
 */

#include <util/delay.h>
#include <avr/wdt.h>
#include <avr/sleep.h>    // Sleep Modes

  // initialize SPI:
  //SPI.begin();
  
  //pinMode(PWM_PIN, OUTPUT);  
  //analogWrite(PWM_PIN, 250);
  setVoltage(solar_val);

  Serial.begin(9600);
  Serial.println("Setup");
