I have hooked up an LDR on A0 and a DFRobot LM35 block on A2 of my Arduino Mega.
The board is powered by an external 12V power source
With out the LDR plugged in my LM35 runs perfectly showing a steady temperature reading. As soon as I plug in the LDR my LM35 values go haywire.
I assume this is because the LM35 is very sensitive to changes in voltage.
I am connecting to the board using pyfirmata and firmata standard is installed on the board if that helps.
Questions:
is it imposible tot use the LM35 with an LDR? If so what would you reconmend as a replacement that is not affected by the LDR?
or
If I can use them together what do I need to do?
Thanks
Simon