Getting input on a digital switch.
Poll the digital switch every action.