arduino code for swings sensor rs-485 network