Sensors placed at the top of her thighs detect how close she is to orgasm, shutting the vibrator off just before she cums. (sound in comments)