In digital communications, an extra bit is sometimes appended to the message to make the ‘logic high’ bit count even or odd. This extra bit is know as parity bit and used for error detection.
The transmitter is responsible for generating the parity bit and receiver is responsible for detecting the message including the parity bit. If message doesn’t meet the parity check an error flag is generated and transmitter is requested to re-transmit the packet.