Read data from digital input