changed to 12-bit ADC for increased resolution