A dialysis apparatus includes a housing a first electrical contact carried by the housing a hydrogel material located within the housing a second electrical contact connected to the hydrogel material, the hydrogel material located so as to be contacted by a liquid flowing through the housing and wherein the hydrogel material expands as the material absorbs the liquid such that the second electrical contact is moved and eventually engage the first electrical contact.