App paired with sensor measures stress, delivers advice to cope in real time