Not enough I/O pins

Use a cd4051 analog mux to get 8 more analog ins (at the cos of one aanalog and 3 digital pins).

If you still need more digital outs use 74hc595 shiftregisters to add more.