Switch on pull up resistor for digital pins only when measuring to reduce power consumption.
Set DIDR0 for ADC channels, switch off digital input buffers to reduce ADC noise and to save power.