Updated internal pullup Arduino code and circuit