Call Phone +8618073152920 Hotline: +8618073152920
Call Phone +8618073152920
English
CONTACT US/ CONTACT US
Consumer hotline +8618073152920
Changsha Zoko Link Technology Co., Ltd.

Email:Arvin@niubol.com

WhatsApp:+8615367865107

Address:Room 102, District D, Houhu Industrial Park, Yuelu District, Changsha City, Hunan Province, China

Position:Home >> Blogs >> Product knowledge

Product knowledge

Automatic Irrigation System Using Arduino: RS485 Soil Sensor and Valve Control

Time:2026-08-08 13:42:21 Popularity:326

Quick Answer: An automatic irrigation system using Arduino can read an industrial RS485 soil sensor, but a board's UART pins are not an RS485 port. Use a compatible transceiver or supported RS485 interface, an appropriate sensor supply and the exact Modbus register map. Drive pumps and valves through suitable power hardware, not through a GPIO pin. A portable USB-C soil tester is a different product, not a drop-in substitute.

Portable USB-C soil tester for phone-based spot measurements

Choose a continuous sensor, not a phone accessory

The NiuBoL seven-parameter USB-C soil tester is intended for portable measurements with a compatible phone. Its Type-C connector supplies power and data through the phone interface. That does not establish support for an Arduino USB host or turn the product into an RS485 field probe.

For unattended irrigation, choose a sensor whose documented output can be polled continuously by the installed controller. The NBL-S-TM soil temperature and moisture sensor provides RS485 Modbus RTU output for that role. Moisture informs root-zone water decisions; temperature adds context. EC and nutrient channels are not necessary merely to demonstrate a working moisture-based irrigation loop.

Connect the NBL-S-TM through the correct electrical interface

The path is soil probe, RS485 bus, compatible transceiver, controller UART, validated measurement and irrigation logic. Keep the sensor power circuit distinct from the board's logic interface. Some controller hardware already includes RS485; a basic development board generally needs an additional interface.

NBL-S-TM RS485 soil temperature and moisture probe
NBL-S-TM specificationPublished valueIntegration implication
Soil moisture0-100% volumetric soil moisture; 0.1% resolution; stated accuracy +/-5%Use volumetric water content, not air relative humidity; confirm accuracy basis for acceptance
Soil temperature-40 to 80 C; 0.1 C resolution; accuracy +/-0.5 CCheck decoding of negative temperatures rather than treating every register as unsigned
Sensor supply5-24 VDC; some configurations 12-24 VDCIdentify the ordered variant before selecting the supply; do not assume every probe operates from board 5 V
Output and protocolRS485 Modbus RTU; default 9600 bps, eight data bits, no parityConfirm the remaining serial settings, address, function and register layout for the unit
Polling intervalAt least 1000 msRespect the device interval rather than continuously flooding the bus
Protection and cableIP68 probe; standard 5 m cable; epoxy sealingProtect above-ground joints and the controller enclosure separately

Select the transceiver's logic side for the actual board voltage. A 5 V output is not automatically safe for a 3.3 V input. Confirm the module's direction control, isolation and bus-biasing arrangements; generic connection diagrams for another module may differ. The Arduino Modbus documentation distinguishes the protocol from its serial transport, and the RS485 hardware guide illustrates a controller with a built-in interface.

Prove the measurement before connecting a valve

  1. Read one probe on the bench. Use its supply and a compatible interface. Obtain a stable response with the correct address and serial format.
  2. Verify interpretation. Check register addresses, scaling, signed temperature and units against the exact device documentation. A returned number is not proof of correct decoding.
  3. Handle invalid data. Reject CRC failures, missing replies and stale values. Do not convert a timeout into zero moisture, which could falsely request irrigation.
  4. Log changing soil conditions. Observe a wetting and drying sequence in the intended soil before selecting thresholds. Do not use an arbitrary percentage copied from a different crop or soil.

Keep pumping disabled during these checks. A functioning serial link and a stable moisture reading are separate from a tested irrigation controller. Use a maintained Modbus implementation compatible with the hardware rather than inventing a different frame format for the sensor.

Agricultural sensor installation and monitoring concept

Install the probe where it represents the irrigation zone

Place sensing electrodes in representative root-zone soil with firm contact. Avoid air gaps, large stones and a position immediately beside an emitter unless that wetting zone is the intended measurement. For buried installation, insert horizontally into an undisturbed soil wall at the required depth. Do not hammer the electrodes or rock the probe after insertion.

One probe describes one local volume, not a whole farm. Different soil types, slopes and irrigation zones may need separate points. Compare the chosen location with other points during commissioning; add another depth when the decision requires deeper drainage information rather than assuming the surface reading represents the entire root zone.

Make the valve decision independent of internet availability

Use separate start and stop thresholds to avoid rapid switching near one moisture value. After irrigation, allow an appropriate redistribution period before deciding that more water is needed. Establish those settings from the crop, soil and hydraulic response rather than from the sensor's measuring range.

A weather station can provide rainfall and atmospheric context, but it does not replace root-zone measurement. Conversely, a moisture probe does not verify delivered flow. Where a failed valve or blocked line matters, include suitable flow, pressure or valve feedback in the system design. A remote dashboard can display these records without being required for every local control decision.

NiuBoL field weather stations for optional rainfall context

Test the failures that can waste water

Specify a maximum irrigation runtime and test what happens if the probe disconnects, the controller restarts or the network disappears. Select the safe action for the installation: normally closed valves may support a stop-on-fault strategy, but valve hardware, crops and pumping arrangements must be reviewed together. An old valid value must not remain valid indefinitely.

GPIO should command a correctly rated driver, relay interface or contactor circuit, not supply the pump or solenoid load. Inductive-load suppression and electrical protection depend on the selected actuator and driver. Keep mains-powered pump work within the responsibilities of a qualified installer; the sensor interface is not a motor protection circuit.

If the broader project also measures irrigation-water turbidity or conductivity, treat those as separate water instruments. A turbidity probe does not report soil moisture, and EC does not replace the moisture input to this controller. Add those channels only when filter or water-quality management requires them.

Separate water turbidity probe, not a soil moisture sensor

Project Decision FAQ

Q1. Can I connect RS485 A and B to Arduino TX and RX?

No. A and B are differential bus connections, while UART pins are logic-level signals. Use a compatible RS485 transceiver or a controller with a documented RS485 interface. Follow that hardware's wiring and voltage limits.

Q2. Does IP68 make the entire irrigation controller waterproof?

No. The rating applies to the specified probe. Cable splices, power terminals, the RS485 module and the controller need their own environmental protection. Leave serviceable connections accessible rather than burying an unprotected joint.

Q3. What moisture percentage should start irrigation?

There is no universal setpoint. Establish thresholds for the crop, soil, root depth and irrigation method, using observations of wetting and drying. Check repeatability and spatial variation before allowing automatic operation.

Q4. Is an Arduino prototype suitable for an unattended commercial installation?

Only after power recovery, watchdog behavior, actuator faults, enclosure protection and field wiring have been engineered and tested. When documented industrial inputs, service support or project approvals are required, compare an industrial controller or data logger rather than assuming a bench prototype meets them.

Q5. What should I request when ordering the soil sensor?

Specify NBL-S-TM, supply variant, RS485 Modbus RTU, cable length and connector requirements. Request the matching register map and communication settings. Provide the controller and interface details so the electrical connection can be checked before shipment.

Separate water conductivity probe for irrigation-water monitoring

Summary

An automatic irrigation system using Arduino needs more than a moisture threshold: correct RS485 hardware, valid data, representative installation and controlled actuator behavior are essential. NiuBoL can help identify a soil sensor configuration for the proposed controller. Commission the measurement and fault responses before enabling unattended watering.

Related recommendations

Sensors & Weather Stations Catalog

Agriculture Sensors and Weather Stations Catalog-NiuBoL.pdf

Weather Stations Catalog-NiuBoL.pdf

Agriculture Sensors Catalog-NiuBoL.pdf

Water Quality Sensor Catalog-NiuBoL.pdf

Related products

Tell us your requirements, Let's discuss more about your project.we can do more.

Name*

Tel*

Email*

Company*

Country*

Message


online
Contacts
Email
Top
XAutomatic Irrigation System Using Arduino: RS485 Soil Sensor and Valve Control-Product knowledge-Automatic Weather Stations_Industrial, Agricultural, Water & Environmental IoT Monitoring Solutions—NiuBoL

Screenshot, WhatsApp to identify the QR code

WhatsApp number:+8615367865107

(Click on WhatsApp to copy and add friends)

Open WhatsApp

The WhatsApp ID has been copied, please open WhatsApp to add consultation details!
WhatsApp