Measuring data from a digital sensor