Refactored DigitalRead and setup mode to only emit connection event on connect.