John Larson, a U.S. doctor, invented the lie detector in 1921 to detect when people were fibbing based on physiological reactions like increased sweating and nervousness. His invention used about 5 wires and 7 sensors connected to a pen to measure how rapidly the heart beats when lying, as it beats faster and faster when not telling the truth.