Arduino nano output as button

Hi! How can I use one of the arduino nano outputs as a simple push button. My first idea is to control a relay with aurdino. However, my question is, is there a simpler solution for digital components?
Thx

Probably yes, but it all depends on the circuit. So a relay is the most drop in replacement if you don't know the specs.

you can just attach a button instead of the arduino if you want to push a button and turn on a relay.

Depends on the circuit you want to control.
An optocoupler can be used if voltage/current is low.
Leo..

lzh6k4:
Hi! How can I use one of the arduino nano outputs as a simple push button. My first idea is to control a relay with aurdino. However, my question is, is there a simpler solution for digital components?

In short the XY problem.

Start by explaining what you actually want to do.