• Try:

    console.log((val*0.256/32768).toFixed(3)­ + "V");
    

    You'll probably have to change 0.256 depending on the current gain of your ADC. The .toFixed(3) turns it into a string with 3 decimal places.

About

Avatar for Gordon @Gordon started