More I/O units

Check out the Shift Register / Encoder thread below. That will explain shift registers that allow you can use them to extend your I/O interfaces, or your other option is to go with a Mega board that has 54 I/O pins.