I have water level/humidity sensor and a LDR diode hooked to arduino like this (the resistor is 10k)
- On
A0
I can read signal from water sensor (blue) - On
A1
I can read signal from light sensor (yellow)
The problem is that both signals seem to be correlated. When I dip the water sensor to water and keep the light levels the same, the signal from light goes up as well (dramatically).
I suspect that this is due to Ohm's law. The voltage in a circuit depends on the total resistance of the circuit. Both sensors act as a sort of resistors so when one's resistance changes the voltage in the circuit changes as well.
How can I wire the sensors such that the change in resistance of either sensor doesn't affect the second? Or do I need a separate power supply for each sensor?
A3
(same as the LDR is wired). and readA0
(water) ->A3
(discharge) -->A1
(light)?