An ostomy appliance includes a first adhesive having a first surface and a second surface opposing the first surface. The first surface is provided to contact a partly electrically conductive object. The appliance also includes a first layer situated on the second surface of the first adhesive, and a first electrode situated on the first layer and electrically isolated from the first adhesive.