1. Introduction
The Aideepen XY-MD03 and XY-MD04 are high-precision, waterproof temperature and humidity sensor probes designed for various industrial and household applications. These sensors utilize RS485 communication with the MODBUS_RTU protocol, offering reliable data collection in challenging environments. Featuring Swiss imported chips and robust anti-interference capabilities, they are ideal for monitoring conditions in greenhouses, warehouses, communication rooms, intelligent buildings, pharmacies, and laboratories.

2. Features
- Small and exquisite design, easy to carry and store.
- Anti-reverse connection protection for enhanced durability.
- Strong anti-interference ability for stable operation.
- Adopts copper particle sintering or PE material protective cover, ensuring waterproof and breathable properties.
- Equipped with digital temperature and humidity sensors for high accuracy and debugging-free performance.
- Low power consumption and high precision measurements.
- Supports MODBUS_RTU communication protocol and custom common protocols.
- Suitable for high-temperature environments such as ovens, saunas, and steam rooms (XY-MD03).
- Suitable for high dust environments requiring high sensitivity (XY-MD04).

3. Specifications
| Parameter | Value |
|---|---|
| DC Voltage | DC5-28V |
| Maximum Power Consumption | ≤0.05W |
| Humidity Measurement Accuracy | ±3% RH (60% RH/25°C) |
| Temperature Measurement Accuracy | ±0.3°C (25°C) |
| Working Range (XY-MD03) | -40°C~+80°C, 0% RH~100% RH |
| Working Range (XY-MD04) | -40°C~+120°C, 0% RH~100% RH |
| Communication Protocol | MODBUS_RTU |
| Output Signal | RS485 signal |
| Temperature Resolution | 0.1°C |
| Humidity Resolution | 0.1% RH |
| Temperature and Humidity Refresh Time | 0.5S |
| Cable Length | Approximately 1M |
| Applicable Environment | Non-condensing environment of 0-99% RH |
| Certification | CE |
3.1. Model Specific Dimensions

XY-MD03 (PE Probe - Long)
- Probe Diameter: 16mm
- Probe Length: 70mm
- Measurement Elements: Temperature and Humidity
- Application Conditions: -40~80℃ / 0~100%RH
- Measurement Accuracy: ±0.3℃ (25℃) / ±3%RH (60%RH, 25℃)
- Waterproof and dust-proof, suitable for high humidity environments, outdoor, agricultural greenhouses.
XY-MD04 (Metal Waterproof Probe - Short)
- Probe Diameter: 15mm
- Probe Length: 55mm
- Measurement Elements: Temperature and Humidity
- Application Conditions: -40~120℃ / 0~100%RH
- Measurement Accuracy: ±0.3℃ (25℃) / ±3%RH (60%RH, 25℃)
- Suitable for high dust and applications requiring high sensitivity.
4. Setup
4.1. Wiring Instructions
Connect the sensor according to the following color-coded wiring diagram:

- Red Line: Power supply positive
- Black Line: Negative terminal of the power supply
- Yellow Line: 485-A
- White Line: 485-B
4.2. Physical Installation
The sensor probes are designed for durability in various environments. The XY-MD03 (PE probe) is waterproof and dust-proof, making it suitable for high humidity environments, outdoor use, and agricultural greenhouses. The XY-MD04 (metal probe) is designed for high dust environments and applications requiring high sensitivity.
Ensure the sensor is placed in a location representative of the area you wish to monitor, avoiding direct sunlight or heat sources that could affect readings. The device can be used in a non-condensing environment of 0-99% RH.
5. Operating Instructions (MODBUS Protocol)
The sensor communicates using the MODBUS_RTU protocol over RS485. Below are the function codes and examples for reading and writing data.
5.1. Function Codes Used by the Product
- 0x03: Read holding register
- 0x04: Read input register
- 0x06: Write a single holding register
- 0x10: Write multiple holding registers
5.2. Register Map
| Register Type | Register Address | PLC Address | Data Content | Number of Bytes |
|---|---|---|---|---|
| Input register | 0x0001 | 30002 | Temperature value | 2 |
| 0x0002 | 30003 | Humidity value | 2 | |
| Hold register | 0x0101 (257) | 40258 | Device address (1~247) | 2 |
| 0x0102 (258) | 40259 | Baud rate (9600, 14400, 19200, 38400, 56000, 11520 (stands for 115200)) | 2 | |
| 0x0103 (259) | 40260 | Temperature correction (/10) -10.0~10.0 | 2 | |
| 0x0104 (260) | 40261 | Humidity correction (/10) -10.0~10.0 | 2 |
5.3. MODBUS Communication Format
Host Sends Data Frame:
| Slave address | Function code | Register address high byte | Register address low byte | Register number high byte | Register number low byte | CRC high byte | CRC low byte |
|---|---|---|---|---|---|---|---|
| 0x01 | 0x04 | 0x00 | 0x01 | 0x00 | 0x01 | 0x60 | 0x0A |
Slave Response Data Frame:
| Slave address | Function code | Number of bytes | Temperature high byte | Temperature low byte | CRC high byte | CRC low byte |
|---|---|---|---|---|---|---|
| 0x01 | 0x04 | 0x00 | 0x01 | 0x31 | 0x79 | 0x74 |
If the temperature value is 0x0131, convert it to 305 in decimal notation, and the actual temperature is 305/10 = 30.5°C.
Note: Temperature is a signed hexadecimal number. For example, if the temperature value is 0xFF33, converted to decimal -205, the actual temperature = -20.5°C.
5.4. Reading Humidity
Host Reads Humidity Command Frame (0x04):
| Slave address | Function code | Register address high byte | Register address low byte | Register number high byte | Register number low byte | CRC high byte | CRC low byte |
|---|---|---|---|---|---|---|---|
| 0x01 | 0x04 | 0x00 | 0x02 | 0x00 | 0x01 | 0x90 | 0x0A |
Slave Response Data Frame:
| Slave address | Function code | Number of bytes | Humidity high byte | Humidity low byte | CRC high byte | CRC low byte |
|---|---|---|---|---|---|---|
| 0x01 | 0x04 | 0x02 | 0x02 | 0x22 | 0xD1 | 0xBA |
If the humidity value is 0x0222, convert to 546 in decimal notation, and the actual humidity value is 546/10 = 54.6%.
5.5. Continuously Reading Temperature and Humidity
Host Command Frame (0x04):
| Slave address | Function code | Register address high byte | Register address low byte | Register number high byte | Register number low byte | CRC high byte | CRC low byte |
|---|---|---|---|---|---|---|---|
| 0x01 | 0x04 | 0x00 | 0x01 | 0x00 | 0x02 | 0x20 | 0x0B |
Slave Response Data Frame:
| Slave address | Function code | Number of bytes | Temperature high byte | Temperature low byte | Humidity high byte | Humidity low byte | CRC high byte | CRC low byte |
|---|---|---|---|---|---|---|---|---|
| 0x01 | 0x04 | 0x04 | 0x01 | 0x31 | 0x02 | 0x22 | 0x2A | 0xCE |
5.6. Modifying Slave Address
Read Slave Address (Function 0x03):
| Slave address | Function code | Register address high byte | Register address low byte | Register number high byte | Register number low byte | CRC high byte | CRC low byte |
|---|---|---|---|---|---|---|---|
| 0x01 | 0x03 | 0x01 | 0x01 | 0x00 | 0x01 | 0xD4 | 0x36 |
Slave Response Frame:
| Slave address | Function code | Number of bytes | Slave address high byte | Slave address low byte | CRC high byte | CRC low byte |
|---|---|---|---|---|---|---|
| 0x01 | 0x03 | 0x02 | 0x00 | 0x01 | 0x30 | 0x18 |
This indicates the current slave address is 1 (0x0001).
Modify Slave Address (Function 0x06):
| Slave address | Function code | Register address high byte | Register address low byte | Register number high byte | Register number low byte | CRC high byte | CRC low byte |
|---|---|---|---|---|---|---|---|
| 0x01 | 0x06 | 0x01 | 0x01 | 0x00 | 0x08 | 0xD8 | 0x30 |
This example changes the slave IP address to 0x08 (decimal 8).
Slave Response Frame (same as send):
| Slave address | Function code | Register address high byte | Register address low byte | Register number high byte | Register number low byte | CRC high byte | CRC low byte |
|---|---|---|---|---|---|---|---|
| 0x01 | 0x06 | 0x01 | 0x01 | 0x00 | 0x08 | 0xD8 | 0x30 |
5.7. Modifying Baud Rate
Example: Change the slave IP address to 0x20 (decimal 32) and Baud rate to 0x2580 (9600).
| Slave address | Function code | Starting address high byte | Starting address low byte | Register number high byte | Register number low byte | Number of bytes | Register 1 high byte | Register 1 low byte | Register 2 high byte | Register 2 low byte | CRC high byte | CRC low byte |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0x01 | 0x10 | 0x01 | 0x00 | 0x00 | 0x02 | 0x04 | 0x00 | 0x20 | 0x25 | 0x80 | 0x25 | 0x09 |
Slave Response Frame:
| Slave address | Function code | Register address high byte | Register address low byte | Register number high byte | Register number low byte | CRC high byte | CRC low byte |
|---|---|---|---|---|---|---|---|
| 0x01 | 0x10 | 0x01 | 0x01 | 0x00 | 0x02 | 0x11 | 0xF4 |
6. Maintenance
To ensure the longevity and accuracy of your Aideepen sensor, follow these maintenance guidelines:
- Cleaning: Periodically clean the probe surface to prevent accumulation of dust or debris, especially in high-dust environments. Use a soft, dry cloth. Avoid abrasive cleaners or solvents.
- Connection Check: Regularly inspect the wiring connections for any signs of corrosion or damage. Ensure all connections are secure.
- Environmental Considerations: While the probes are waterproof and dust-proof, prolonged exposure to extreme conditions beyond their specified operating range may affect performance.
7. Troubleshooting
- No Readings or Incorrect Data:
- Verify power supply (DC5-28V) and ensure correct polarity.
- Check RS485 wiring (485-A and 485-B connections).
- Confirm the slave address of the sensor matches the address used in your communication.
- Ensure the baud rate, parity, and stop bits are correctly configured in your MODBUS master device to match the sensor's settings.
- Inspect the cable for any physical damage.
- Inaccurate Readings:
- Ensure the sensor is placed in an appropriate environment, away from direct heat sources or strong air currents that could skew readings.
- Check for any physical obstructions or buildup on the probe surface.
- Consider applying temperature or humidity correction if a consistent offset is observed (refer to Register Map for correction registers).
8. User Tips
- MODBUS Configuration: When setting up MODBUS communication, remember to configure the baud rate, data length, parity, and stop bits correctly. Common settings are 9600 baud, 8 data bits, no parity, and 1 stop bit, but always verify against your specific system requirements and the sensor's default or configured settings.
- Initial Testing: Before permanent installation, perform a quick test to ensure the sensor is providing accurate readings and communicating correctly.
- Environmental Suitability: Choose the correct model (XY-MD03 for high humidity, XY-MD04 for high dust) based on your application environment for optimal performance and longevity.
9. Frequently Asked Questions (FAQ)
- Q: What are the typical MODBUS communication parameters (baud rate, data length, parity, stop bit)?
- A: While the sensor supports various baud rates (9600, 14400, 19200, 38400, 56000, 115200), common MODBUS_RTU configurations often use 9600 baud, 8 data bits, no parity, and 1 stop bit. Always refer to the 'Register Map' in Section 5.2 for supported baud rates and ensure your master device matches the sensor's configuration.
- Q: Can I use this sensor outdoors?
- A: Yes, the XY-MD03 model with its PE protective cover is waterproof and dust-proof, making it suitable for outdoor use and high humidity environments like agricultural greenhouses.
- Q: How do I change the slave address of the sensor?
- A: The slave address can be changed by writing to the holding register 0x0101 (PLC address 40258) using function code 0x06 or 0x10. Refer to Section 5.6 for detailed instructions and examples.
10. Warranty and Support
For specific warranty information, technical support, or service inquiries, please contact the seller or manufacturer directly. Keep your purchase records for any warranty claims.