I checked the sensor wiring and it appears to be good. I also checked the voltage between the proper input pin and ground and found it to be fluctuating between Vcc (4.99V) and about 2.1V while the ATmega8 was running the program, but without the sensor plugged in.
Also, all of the above resistance measurements in the previous post were made without the batteries connected and without the ATmega8 in the socket.
I've checked and double checked the pin assignment in the program with the pin diagram in the ATmega8 data sheet. I also ran a couple simple tests to be sure my LED blinker code is working properly.
I wonder if there's a slight short to ground somewhere that is making the ground float all over the place. I thought I read somewhere in the forums that the ground needs to be steady for the ADC to function reliably.
Also, I'm not really sure if measuring voltage between the Analog Input pin and Ground is a valid measurement point, given that it's an input pin.
Geez...maybe I need to get my hands on a oscilloscope. I had hopes that I could do it with my sound card, but it seems those oscilloscopes can't reliably measure DC circuits. Ebay, here I come!
