A guitar tuner is an electronic device that detects the pitch of each string and helps you adjust it, while a tuning peg is used to physically tighten or loosen the strings for tuning.