...that can even reach the 220v more or less and just limit it to the 5v.
need to be 100 percent secure that the uino won't be destroyed if someone intentionally cut wires of the switch and insert it in 220v electric outlet for sake to destroy the project and stop it and I am trying to find a way to prevent that from happening
But is there a special way to connect the isolator to the switch wires and uino or just through the wires (inbetween)?
Use steel-wire armoured cable. You are trying to protect against intentional stupidity which is virtually impossible.
people who want to sabotage the project