An encoder that includes a code strip and an emitter-detector module is disclosed. Valves for use on cartridges or devices may include one or more internal seals that prevent fuel flow except when a valve is connected to a properly coupled corresponding valve and a seal between the two vales is established. The stacked circuit boards can be clamped, soldered or bonded together.