Reduce idle power consumption to about 21µA by connecting the pull-up resistors for the battery voltage and photocell to a separate pin (PB6) that is switched on only when measuring.