I used to inspect mechanical machines in New York State. In New York, each major party is supposed to send a represenative to the polling place the night before and watch as the machines are opened, inspected, checked for "early" votes and then sealed.
Either someone was asleep at the switch or those machines were tampered with.