Imagine a guard dog’s collar and chain.
The collar would have embedded sensors for sweat/temperature and pulse rate.
If the sensors indicated a high level of stress in the animal (as when an intruder appears), the chain could automatically be extended in proportion to the stress it was experiencing.