Take a look on this article https://www.mysensors.org/build/rs485