Since the issue of 0 or 1 for digital keeps coming up, I thought I would add some comments from my own experience and somewhat limited knowledge. I am not a Electrical Engineer or a Digital Engineer, but I am a technician and have been involved with electronics since the start of the digital evolution. If you want more clarification of that, it means from discrete transistor circuits to simple chips to todays integrated multi function chips.
So a few basics, all digital data is moved in small chunks typically called words. Each word can and usually has a parity bit which is basically an odd even check to make sure no bits are lost. So if the word passes the number 5 but it should have been 6 that can be detected and corrected. But, if the word passes 4 and it should have been 6 that is not detected. Of course that assumes the parity bit is read correctly, which may or may not be true. The next level up in making sure the digital information is correct comes at the block level (group of words; the size of which is specified by a framing protocol)