Has digital write intialization and read functions added. Initilazation correctly raises ERRORLED when no sensor is present.