Reading data from a digital sensor