While I suppose almost anything is possible theoretically, this one I'd assume not, at least in a general public sense with those triggers.
Heart rate will vary depending on activity, not just arousal. Any activity done to achieve an edge or play such as moving arms, riding something, stroking something, etc. is going to raise the heart rate. And pain can also trigger rises in heart rate. There isn't going to be a magic threshold heart rate where orgasm happens. Here is what one woman's fitbit recorded, her heart rate during orgasm was similar to when she was riding him.
http://www.womenshealthmag.co.uk/se...heart-rate-during-sex-normal-sex-is-shocking/
Also respiration rate will vary so programming by breath is also unlikely. Plus the individual variations such as some people hold their breath or breathe faster while edging or approaching orgasm.
I suppose with a lot of individual testing and programming, you could probably rig up something fairly accurate for an individual to use in controlled circumstances, but even then I don't think it would be completely in control of the orgasm/lack there of.
Some sort of pressure sensor that measured contradictions of a vagina or similar movement around the shaft of a penis is likely to be more accurate. Again though, people twitch and clench, there are going to be false triggers,
That said, something could definitely be used for tease and denial as long as edge/orgasm wasn't the main goal. I imagine frustration would mount very high if the vibrator shut off even when someone is merely approaching an edge, not always allowed to quite reach it.