I'm getting issue with Modbus integer. When i send integer it showing garbage values .
Ex. when i send 1 through hercules software then in Serial Monitor it shows 137,When i send 2 it shows 57.
I'm using USB to RS485 Converter and MAX485 converter(DI=Pin2,RO=Pin 3,RE/DE=GND).