I am currently working on a project with an arduino yun and some sensors. I decided not long ago to handle the case where a sensor was unplugged. So I have 3 sensors, respectively on A0, A1 and A2, i read the value with analogRead and the corresponding slot ( analogRead(A0) for example). Until now, everything's ok. Then, I decide to unplug a sensor and see the value it sends me, to handle the case... Aaaaand, surprise !
I get the exact same range of values, on every analog slot. I tried to link an analog slot to 5V, i do have the 1083 result, and to the ground, the 0. So... i'm kinda lost right know, i have no idea why this is happening. Does someone have had a similar problem ?