A method of decoding encoded information is presented where one or more sensors are controlled to periodically check for motion of a movable component of a drug delivery device having encoded information thereon. If motion of the movable component is detected, preventing a first encoded information reading and decoding process from being performed, when motion of the movable component is not detected, performing the first encoded information reading and decoding process.