You don't take it with you. It's your ballot, and you submit it into a lock box when you're done. One A4-sized piece of paper with your legibly printed choices and a QR code is your ballot.
When they count your vote later, they have a high-speed system that can scan all the QR codes almost instantly. It's why we know the results in as little as an hour.
If there are any questions, or if the race is tight, a team of auditors can look at the ballot pages to check for any discrepancies. They'll check to make sure the machines themselves weren't tampered with by checking that the printed names and other ballot initiatives match the QR codes.