ATMEGA328 ADC connection to LM35 temperature sensor

Hi,

I am connecting LM35 temperature sensor with ATMEGA328. I have connected it to ADC5 and VCC and GND.

My question is that do i need to pass voltage to AVCC or AHREF in order to use ADC ?

Currently, i dont get any value from this sensor.

Thanks,

Ujjwal Soni

AVcc and AGND must always be connected to Vcc and GND (though you could use a series bead and 100n cap to ground on AVcc to reduce noise). If you are using the internal reference (which you probably will), connect a 100n cap from Aref to AGND.

/mike