AnalogReadSerial 1023 only //// help please////

I have tried the AnalogReadSerial tutorial and when I try to read the serial it remains 1023. :sob:
I dont know much about arduino it is my second time using it. :grinning:
I am not so specialized in this.

int sensePin =0;

void setup(){


void loop(){

Sounds like the connection to Ground is broken.

NOT REALY . i tried to light a led ind it worked

/* AnalogReadSerial Reads an analog input on pin 0, prints the result to the serial monitor. Attach the center pin of a potentiometer to pin A0, and the outside pins to +5V and ground.

This example code is in the public domain. */

Did you connect the potentiometer as described? Double-check the connection to ground.

something is strange here same problem

I think something is wrong with the analog inputs

can it be a broken atmega? i read something like this on another topic

Of course it can be a broken ATmega... but more likely it is a bad connection. When you connect a multimeter between A0 and Gnd what voltage do you read?

I have conected a0 to gound and it says 0 Something is wrong with the analog inputs how can i repare this problem?

Post a schematic of your circuit: not the ideal circuit from the example, your actual circuit.

Post code, post a schematic

I have atached the code and a blueprint it is like this guy did

Nothing attached....

Oh wait I see you attached them at the top.

Well it works for me: I get from ~500 with photoresistor uncovered down to ~80.

When I pull the gnd wire out it goes to 1023 as johnwasser said it would.

It is at the topic description (up) I realy need help

It works for me... try a different analog pin? Try a different ground point? Try a different piece of wire?

Post a photo....

can i use the gnd from the digital pins?

something is strange here same problem. thanks.

Moderator: Commercial URL removed

its not working doesnt matter what analog imput i use I also bought another atmega and its the same The ground is working perfect but something is wrong with analog i realy need help

I am hapy so hear that i am not the only one with this problem

picatel: can i use the gnd from the digital pins?

Yep ground is ground

Post a photo