>>274661020
That wouldn't measure length or how hard you are.
Instead, make a tight-fitting mesh condom that can stretch with your erection. Rib it with elastic rings that can tighten to simulate penetration or tactile feedback. Have it clip to your pubes so it doesn't slip off while you're flaccid.