Thanks for this tip.
As a regular (and vigorous) club level swimmer I tried using Opsite FlexFix tape, but the whole lot (tape + sensor) came off in the first 20mins.
However when I was outdoor swimming with wetsuit the night before, I had no problems.
So I took inspiration from your tip...