Got ADC to work but not perfectly