I had a conversation with my mom on how voting used to work. It ended because neither of us really understood how it worked in the past (specifically in the pre-electricity or even pre-telegraph era). Like how were votes counted? How long did it take? What did election security look like?
Edit: Should clarify I mean the United States.
You may find this answer helpful. If you would like additional detail not covered in this thread, please reply for clarification.