Connecting an analog sensor