Improved valve and methods for analytical techniques and systems. The first and second patterns on the transfer medium are read using a light-receiving unit of a pattern detection sensor. The male connector sleeve rotates within and relative to the female connector sleeve when the spout and second tube swivel relative to the base.