Add read digital methods and example app