Scantrons are a big improvement over electronic-only counting, but they can struggle with imperfectly-filled-in ballots... another good alternative, which avoids that particular problem, is to have a machine where you make your selections by button-press - but it prints them onto a physical card, lets you verify the printout through a window, then drops it into a built-in ballotbox.
The machine itself can keep count, or the cards could be designed for scantron-esque machine counting - regardless, in case of a disputed result, the cards can be counted the traditional way (by hand, with observers from each party present, etc).
Not my idea, BTW, but I don't recall where I read it - nor whether it was a description of something actually in use or merely a proposal.