hello , i am trying to connect my sensors to the ananlog input of my ardiuno, i will be using 5 inputs. when i start using more that one analog input, one of the inputs then starts to vary between 0 and the input voltage , this is shown in the two pictures one show a direct connecting to the 5 V line with one input and the other connected to ground , the other image shows when the input are swapped around. The code i am just basicall displaying my analog input . please help
kind regard
Philani
A picture of the code is not very useful to anyone so you should post the code using code tags ( </> )
It could be your power supply is inadequate for what you are doing or something is using more power than it should. This can happen with voltage divider circuits and relays or similar.
A schematic may help at this point too.
Please don't connect 5 volt directly to an input as that could cause possible damage if the current is to high or there are fluctuations on the voltage.
Could you take a few moments to Learn How To Use The Forum.
Other general help and troubleshooting advice can be found here.
It will help you get the best out of the forum in the future.