A pin may also be configured as an?INPUT?with?pinMode(), and subsequently made?HIGH?with?digitalWrite(). This will enable the internal 20K pullup resistors, which will?pull up?the input pin to a?HIGH?reading unless it is pulled?LOW?by external circuitry. This is how?INPUT_PULLUP?works and is described below in more detail.