If your going to be monitored on a heart machine, I assume something is wrong with your health. I also assume that your doctor probably advised you to refrain from straining activities, which would include sexual intercourse. So, be an adult, and refrain from having sex for 24 to help your health.