It's basically a loop of wire. The end of the loop is in the brake pad. When the pad wears down to the loop, the loop breaks, and continuity is lost in the wire. The check control module recognises there is no continuity in the wire, and displays the "BRAKE LININGS" message.