Involved in the transmission of sensory signals from the chemoreceptors and photoreceptors to the flagellar motors. Autophosphorylates, probably in response to a chemo- or phototactic signal, and transfers its phosphate group to CheY. Could also transfer its phosphate group to CheB