pullup - How do I calculate the required value for a pull-up resistor? - Electrical Engineering Stac
There are many tutorials that use a pull-up or pull-down resistor in conjunction with a switch to avoid a floating ground, e.g. http://www.arduino.cc/en/Tutorial/button Many of these ......