I have a XY-MD02 (temperature + humidity over RS-485)
using an RFRobot USB to RS485 converter, I was able to validate that the sensor is at address 1, 9600 baud and that register 0x02 & 0x03 holds the temperature + humidity (despite being 0x01 & 0x02 according to the datasheet)
I haven't been able to talk to it with a Nano... I using a MAX485 based converter (the one that has DI, DE, RE and RO)
I have tried numerous libraries (ModbusMaster, ModbusArduino, ArduinoModBus, Modbus-RTU, Modbus-ESP8266) without any luck...
Has someone with the same hardware succeded?
If so, can you provide the wiring diagram used, as well as the exact library used and the sketch that worked !?!
I'm normally fairly good with Arduino, but this one has me struggling....