Skip to content
SunGeneAgricultural IoT
All problem guides

Problem / solution guide

Send Farm Sensor Readings to MQTT

Connect documented soil, weather and water instruments to an MQTT broker. Plan collection, field mapping and the receiving farm application.

Hardware in this guide

Product-family illustrations. See each product page for specifications and options.

Planning example

Existing RS485 water sensors feeding a farm platform

Plan one complete reading from the instrument through the broker to the application before adding more points.

  1. 01

    Read the instrument

    Map documented registers or inputs into values and units.

  2. 02

    Prepare the message

    Assign stable point names, timestamps, read status and an agreed MQTT topic.

  3. 03

    Publish to the broker

    Configure the selected gateway for the agreed connection and authentication.

  4. 04

    Verify the application

    Confirm the receiving system stores and interprets the reading correctly.

Specify buffering, retry and acknowledgement for the selected gateway and application. MQTT transport alone does not define those project functions.

What does the farm need to check?

Send the sensor list, output documents and a sample payload required by the platform. Include broker requirements and the records needed during a network outage; exchange credentials through an agreed private channel.

Problem to solve

A field sensor output and a platform message are different parts of the system. Select collection hardware for the instrument, then agree the topic, fields and receiving application.

Measurements that matter

  • Sensor value and unit
  • Register or input status
  • MQTT topic and payload
  • Publish success and retry state

Suggested hardware configuration

  • RS485 or IO acquisition module
  • Edge IoT gateway
  • MQTT topic and payload mapping
  • Cloud endpoint test before shipment

Equipment in the system

Example equipment arrangement. Check compatibility and agree who handles software, PLC/SCADA programming and site installation.

Existing field equipment

Confirm the device signals, electrical interface and register map before selecting the gateway.

Data destination

Customer platform or an agreed third-party service

Information needed before quotation

  • Sensor list and protocol
  • Register map
  • Broker endpoint and authentication
  • Payload example

Recommended next steps

  • Review MQTT acquisition
  • Compare MQTT and HTTP
  • Prepare payload sample

Related pages

FAQ

What should I send for equipment selection and a quote?

Send the sensor list, output documents and a sample payload required by the platform. Include broker requirements and the records needed during a network outage; exchange credentials through an agreed private channel.

Does the sensor itself need to support MQTT?

A supported gateway can read an analog or serial sensor and publish to an MQTT broker. Confirm the field interface, broker requirements and payload mapping for the selected gateway.

What must we agree with the receiving platform?

Agree topic names, value names, units, timestamps, authentication and acknowledgement behavior. Test a reading from the field device through to the receiving application before connecting additional points.