Hi, I am working with Arduino Uno and three sensors, a I2C comm-dependent sensor, a sensor whose signal is read by digital pin 2 using the attachInterupt function, and a third sensor whose input signal should be read by any analog pin.
the sketch for the I2C and pin2 associated sensors work very well.
The problem that i am having is that for the sketch using the 3 sensors, the analog pins (other than 4 and 5 used for the I2C sensor) are not being read. The third sensor is a LDR, the process of wiring and coding is straightforward, still, in this context the analog pins A0, A1, A2 or A3 are not being read, instead the analogRead function from the LDR returns the numbers 14, 15, 16 and 17 respectively.
Moreover by changing the code just for reading the LDR in that wiring context, the analog pins to which the LDR is connected (A0, A1, A2 or A3) is properly read.
Can someone please tell me what´s going on and how to fix this?, thanks a lot.