Or maybe use a formula

X=135*256/1023

where X is the number you wan to use in the */

135 is the max scale value

1023 is the max ADC value

Ioannis