Arduion Pull up resistors

Don't use them. It is built into most chips, but you have to enable it. (works Arduino AVRs; Teensy)

Older versions of arduino you simply did:

 pinMode(4, INPUT);
 digitalWrite(4, HIGH);

News versions

  pinMode(4, INPUT_PULLUP);