Salem this is something i found at the website you gave me. This is the conversion part right?Code:unsigned int read_adc(unsigned char adc_input){ ADMUX=adc_input|ADC_VREF_TYPE; //Set channel for input ADCSRA=( (1<<ADEN) | (1<<ADSC) | (1<<ADIE) | (1<<ADPS1) | (1<<ADPS2) );//start conversion while(!(ADCSRA & 0x10)); //Wait for conversion to complete ADCSRA|=0x10; return ADCW; }