@errorntrial the project on Electronic Clinic looks like a modified version of the code talked about in the MAX485 TTL to RS-485 Modules for soil NPK sensor discussion.
I've uploaded a piece of code to that thread. I've tested it using WinModbus and it seems to work correctly with the correct responses going to the correct measurement types.
I don't have the actual hardware to test on, but fingers crossed it works ![]()