A resistor ladder is a device used for this, but I suspect with that many inputs that the different between different combinations of buttons will be smaller than the %variance of the construct (like temp variance).
Another option is to use shift registers.
This video looked instructive: