Theoretically speaking, there are mechanisms that prevent someone from voting twice (you are only allocated to vote to one polling place based on your residence address, and that polling place has a name list where you sign off that you voted).
Are there any mechanisms in USA in place to prevent a person from voting twice by voting early by mail and then going and voting in person?
If the answer depends on the state, let's take NY, the home of SE the company.