Involved in the transmission of sensory signals from the chemoreceptors to the flagellar motors. CheY is likely to be involved in changing the direction of flagellar rotation. Binds 1 Mg(2+) ion per subunit.