Arduino get data from Wall light switch

this is what i have done right now.
i haven't connected it to any voltage yet.
i need to control the relay from the switch (with code).
only problem is that with this setup the switch when is pressed sends random 0 and 1. when it is not pressed sends only 0.