The PORT register controls whether the pin is high or low. The PIN register allows reading the state of a pin that has been configured with input using the pinMode() function.