# Hello. Please help, there is an error when changing the analog sensor port from A0 to any other, A1, A 2, A 3 ...

**URL:** <https://forum.xod.io/t/hello-please-help-there-is-an-error-when-changing-the-analog-sensor-port-from-a0-to-any-other-a1-a-2-a-3/3146>\
**Category:** Uncategorized\
**Created:** [December 27, 2019, 11:24am UTC](https://forum.xod.io/t/hello-please-help-there-is-an-error-when-changing-the-analog-sensor-port-from-a0-to-any-other-a1-a-2-a-3/3146 "2019-12-27T11:24:19Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![propilen31](https://avatars.discourse-cdn.com/v4/letter/p/ecc23a/32.png) [@propilen31](https://forum.xod.io/u/propilen31)\
**Post date:** [December 27, 2019, 11:24am UTC](https://forum.xod.io/t/hello-please-help-there-is-an-error-when-changing-the-analog-sensor-port-from-a0-to-any-other-a1-a-2-a-3/3146/1 "2019-12-27T11:24:19Z")

</div>

Hello. Please help, there is an error when changing the analog sensor port from A0 to any other, A1, A 2, A 3 … At the same time, everything works on port A0, but I need two ports.

 ![A1](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/2/2e706ef8c558f944460ceafa20db540487f054cf.jpeg)  
error: use of undeclared identifier ‘A1’  
constexpr uint8\_t node\_5\_output\_VAL = A1;

---

<div class="post-metadata">

**Author:** ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)\
**Post date:** [December 27, 2019, 1:01pm UTC](https://forum.xod.io/t/hello-please-help-there-is-an-error-when-changing-the-analog-sensor-port-from-a0-to-any-other-a1-a-2-a-3/3146/2 "2019-12-27T13:01:31Z")

</div>

To start, you have broken the xod / core library … delete the xod folder inside _ **lib** _ and reload.

There I only see one node, and np should give that error

---

<div class="post-metadata">

**Author:** ![propilen31](https://avatars.discourse-cdn.com/v4/letter/p/ecc23a/32.png) [@propilen31](https://forum.xod.io/u/propilen31)\
**Post date:** [December 27, 2019, 3:28pm UTC](https://forum.xod.io/t/hello-please-help-there-is-an-error-when-changing-the-analog-sensor-port-from-a0-to-any-other-a1-a-2-a-3/3146/3 "2019-12-27T15:28:15Z")

</div>

Thanks for the tip, but the library was damaged by my experiments with NOD, I tried to understand what was wrong with the sketch. I reloaded the libraries, it didn’t help, but the analog sensor works correctly with port A0, and it gives an error with other ports.

 ![A0](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/7/7679a5fac239fe691ebdf305080aae1b9358def6.jpeg)

---

<div class="post-metadata">

**Author:** ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)\
**Post date:** [December 27, 2019, 4:04pm UTC](https://forum.xod.io/t/hello-please-help-there-is-an-error-when-changing-the-analog-sensor-port-from-a0-to-any-other-a1-a-2-a-3/3146/4 "2019-12-27T16:04:56Z")

</div>

Do you have a board? do not use simulation … use “upload and debug”, the problem is cloud simulation

---

<div class="post-metadata">

**Author:** ![propilen31](https://avatars.discourse-cdn.com/v4/letter/p/ecc23a/32.png) [@propilen31](https://forum.xod.io/u/propilen31)\
**Post date:** [December 27, 2019, 6:14pm UTC](https://forum.xod.io/t/hello-please-help-there-is-an-error-when-changing-the-analog-sensor-port-from-a0-to-any-other-a1-a-2-a-3/3146/5 "2019-12-27T18:14:24Z")

</div>

Yes, indeed, everything began to work on Arduino UNO! Thank you very much!

---

<div class="post-metadata">

**Author:** ![walentinas1982](https://avatars.discourse-cdn.com/v4/letter/w/90ced4/32.png) [@walentinas1982](https://forum.xod.io/u/walentinas1982)\
**Post date:** [February 15, 2023, 9:37pm UTC](https://forum.xod.io/t/hello-please-help-there-is-an-error-when-changing-the-analog-sensor-port-from-a0-to-any-other-a1-a-2-a-3/3146/6 "2023-02-15T21:37:58Z")

</div>

Hello. I ran into a similar problem with the xod/common-hardware library. Reloading the library has no result. What could be the problem? I ordered the board, it’s on its way, but for now I’m not able to check if the node works.  
 ![image](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/6/62b547ed3d4485bc6c67ebfce0c053df0d69e914.png)

![image](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/c/cc5baf0c6b6cc9c79946914a9d208532bc198973.png)

![image](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/d/d1478a030295853ba63c7f9a1adccde0cebdf8a0.png)

---

<div class="post-metadata">

**Author:** ![gweimer](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@gweimer](https://forum.xod.io/u/gweimer)\
**Post date:** [February 16, 2023, 3:53pm UTC](https://forum.xod.io/t/hello-please-help-there-is-an-error-when-changing-the-analog-sensor-port-from-a0-to-any-other-a1-a-2-a-3/3146/7 "2023-02-16T15:53:55Z")

</div>

Do you have any `xod` folders under your ` __lib__ ` folder with other libraries (usually in `C:\Users\YOUR_USERNAME\xod\ __lib__ `)? This would indicate you made changes to the built-in nodes and are not getting the latest copies when you update XOD. If any xod folders do exist in library folder, you can delete (or just rename) them so XOD can see the latest updates for those nodes.

---

<div class="post-metadata">

**Author:** ![walentinas1982](https://avatars.discourse-cdn.com/v4/letter/w/90ced4/32.png) [@walentinas1982](https://forum.xod.io/u/walentinas1982)\
**Post date:** [March 6, 2023, 11:40pm UTC](https://forum.xod.io/t/hello-please-help-there-is-an-error-when-changing-the-analog-sensor-port-from-a0-to-any-other-a1-a-2-a-3/3146/8 "2023-03-06T23:40:55Z")

</div>

Yes, you were right. Your hint helped. Thank you.
