A method of decoding encoded information comprising:controlling one or more sensors 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.