In a sensor for measuring the exchange state of an ion exchanger, a membrane which is composed essentially of the exchange substance used in the ion exchanger is applied to the gate of an ion-sensitive field-effect transistor. The exchange substance is either applied to the gate in finely powdered form in a plastic matrix or is built up on the gate from its components.