Added switch state to arduino load.