Arduino and Home Assistant forums are goldmines. Users often attach the manual PDF to threads about the XY-MD02. Search for:
Proper wiring is essential for stable Modbus communication. The device typically has four terminals: Connect to a DC power source (5-30V). GND (-): Connect to the power supply ground.