how many meters that can I read Voltage

I have Arduino that far from PC about 100 meters, Can I read Push button from this area without errors.

The Arduino and push button are 100 meters from the PC? How are you planning to send the data?


The Arduino and PC are next to each other, but the Push Button is 100 meters away?

I have seen opto couplers used for that.
Opto transistor between pin and ground, with internal pull up resistor enabled in pinMode.
Current limiting resistor (1k) between 5volt and opto LED anode.
Opto LED cathode and Arduino ground to the remote switch.