Dry contact connection/code for nano?

Which pins can I use to trigger a dry contact buttons?

Also, how should I code it?

  • what do you have? and what do you want to obtain ?