A smartphone, two wireless sensors and 10 minutes of simple daily biofeedback training can have a preventive effect on migraine and help alleviate the worst pain experienced by patients. Biofeedback is a technique for achieving self-regulation of bodily functions that are otherwise largely beyond conscious control. Examples include muscle tension, blood pressure and skin temperature.