Funny- this exact same thing almost happened to my sister a ~week ago. She boarded the wrong airplane (although the scanner beeped without any errors). Luckily, after sitting in the plane for 5 minutes, she realized that she had boarded the wrong plane. Her flight had changed gates.