Code working in tinkercad but not Arduino

You can share your Wokwi project link without problem.

I made your sketch and your circuit in Wokwi as well:

You have shared a link to your own project at Tinkercad. That means everyone can alter your Tinkercad project. You can still edit your post and remove that link. I also don't understand how I can make a copy of your Tinkercad project to my own Tinkercad projects.

If you want to continue with the circuit that I made in Wokwi, then you have to log in, and use "Save a copy", and then check your projects.

Wokwi can not simulate a analog circuit and can simulate only one Arduino board. But new things are developed almost every day while Tinkercad has bugs that linger on for years.