 
 
 
-
+int parsed_val = 0;
 byte solar_val = 64; // Temporary half value
 volatile byte wd_isr = WD_DO_STUFF;
 

    // Ofcourse this is rather pointless a sleep will kill the pwm (replacing with digital pot)
    //analogWrite(PWM_PIN, solar_val);
    
    digitalPotWrite(POT_ADDRESS, solar_val);
    
    // Turn off message indicator

        // comma 6 = battery reading
        
        if (comma == 5) {
          parsed_val = val;
          solar_val = map(val, 0, 10000, 0, 128);
          
          
