The lightweight, bandage-like device gently adheres to the chest, where it simultaneously measures heart activity, breathing patterns, sweat response, blood flow and temperature. Together, these signals capture a real-time, whole-body view of stress.
If you read the article, it's not just heartbeat. Though the title comparing to a polygraph is stupid and gives the wrong impression about what the device is meant for. Polygraphs are inherently just stress detectors as well, and their use as a lie detector is pseudoscience garbage that isn't backed up by evidence.
Tracking body signals that show stress could be useful for lots of medical reasons though, so I don't think developing this device was a waste at all.