Using Nano, I'm measuring the inputs of some analog pins.
Sometimes nothing is connected to them (while I'm debugging). When this is the case, the values returned from analogRead(intPin) on these pins tend to "float".
Does this mean I need to have the analog input pins pulled to ground with a small resistor, or can I enable one of the internal resistors on each pin to stop this from happening?
I'm reading this page and it refers to pullup resistors: http://www.arduino.cc/en/Tutorial/DigitalPins
And it specifies this code:digitalWrite(pin, HIGH);
// turn on pullup resistors
Does that means I tun on a pulldown resistor by using digitalWrite(pin, LOW);?
Thanks for your help.