Updated digitalRead and setupDigitalPin.