# My analogRead value is greater than 4095, why? \[SOLVED\]

**URL:** <https://community.particle.io/t/my-analogread-value-is-greater-than-4095-why-solved/11869>\
**Category:** Troubleshooting\
**Created:** [May 18, 2015, 1:47am UTC](https://community.particle.io/t/my-analogread-value-is-greater-than-4095-why-solved/11869 "2015-05-18T01:47:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ruben](https://avatars.discourse-cdn.com/v4/letter/r/59ef9b/32.png) [@ruben](https://community.particle.io/u/ruben)\
**Post date:** [May 18, 2015, 1:47am UTC](https://community.particle.io/t/my-analogread-value-is-greater-than-4095-why-solved/11869/1 "2015-05-18T01:47:29Z")

</div>

I am using an ultrasonic which is supposed to range to Vcc when 5 meters away.  
What is strange is that even at 2 meters I am getting about 11000 from analogRead(A3);  
It is on pin A3 and power is supplied by 3v3\*.  
I’ve even gotten a reading as high as 32011. It’s like there is a multiplier in there somewhere but I am taking the raw reading and printing it to serial.

Any thoughts?

---

<div class="post-metadata">

**Author:** ![bko](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/bko/32/20704_2.png) [@bko](https://community.particle.io/u/bko)\
**Post date:** [May 18, 2015, 1:58am UTC](https://community.particle.io/t/my-analogread-value-is-greater-than-4095-why-solved/11869/2 "2015-05-18T01:58:24Z")

</div>

Hi @ruben

I think you are going to have show us some code. How is the variable that takes the analogRead() value declared? It should be an `int` or `int32_t`. How are you doing the print? With Serial.print or sprintf or some other way?

Another good thing to check is to hook a voltmeter up to the pin and measure the voltage as a double check.

---

<div class="post-metadata">

**Author:** ![ruben](https://avatars.discourse-cdn.com/v4/letter/r/59ef9b/32.png) [@ruben](https://community.particle.io/u/ruben)\
**Post date:** [May 18, 2015, 3:14pm UTC](https://community.particle.io/t/my-analogread-value-is-greater-than-4095-why-solved/11869/3 "2015-05-18T15:14:09Z")

</div>

Thank you. I figured it out after backtracking. It looks like it had something to do with my wiring but that was compounded by my using serial.print with 6 dig digits. Shouldn’t have done that. I put it back to default and looks good.
