# How to measure soil moisture over a cellular connection

**URL:** <https://forum.digikey.com/t/how-to-measure-soil-moisture-over-a-cellular-connection/36388>\
**Category:** Maker, DIY\
**Tags:** part-identification\
**Created:** [November 6, 2023, 4:15pm UTC](https://forum.digikey.com/t/how-to-measure-soil-moisture-over-a-cellular-connection/36388 "2023-11-06T16:15:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![marko-golioth](https://sea2.discourse-cdn.com/digikey/user_avatar/forum.digikey.com/marko-golioth/32/42341_2.png) [@marko-golioth](https://forum.digikey.com/u/marko-golioth)\
**Post date:** [November 6, 2023, 4:15pm UTC](https://forum.digikey.com/t/how-to-measure-soil-moisture-over-a-cellular-connection/36388/1 "2023-11-06T16:15:06Z")

</div>

Whether you garden as a hobby or make your living farming, you need to pay attention to the growing conditions of your plants and crops. And the faster you can react to these conditions, the better your yields.

[The Cellular IoT Soil Moisture Monitor reference design](https://projects.golioth.io/reference-designs/cellular-iot-soil-moisture-monitor/) aims to be a proof-of-concept for operations that need far-flung sensors throughout an operation that can report back to the cloud on regular intervals. The hardware and software is ready to use, and all components can be ordered at Digikey. If you start with the recommended components of this design you can quickly prototype your own ag-tech solution, and customize where and when necessary.

**Parts list**

- [Nordic nRF9160 DK](https://www.digikey.com/en/products/detail/nordic-semiconductor-asa/nrf9160-dk/9740721)
- [MikroE Hydro Probe Click](https://www.digikey.com/en/products/detail/mikroelektronika/mikroe-4131/12822008)
- [MikroE Weather Click](https://www.digikey.com/en/products/detail/mikroelektronika/mikroe-1978/5668730)
- [MikroE IR Gesture Click](https://www.digikey.com/en/products/detail/mikroelektronika/MIKROE-2086/5983063?s=N4IgTCBcDaILIEkDSAlA8gUQLRgAwA4A2EAXQF8g)
- [MikroE Arduino UNO Click Shield](https://www.digikey.com/en/products/detail/mikroelektronika/mikroe-1581/4976464)
- [LIS2DH Development Board](https://www.digikey.com/en/products/detail/stmicroelectronics/STEVAL-MKI135V1/4280205)
- [MikroE Shuttle Click](https://www.digikey.com/en/products/detail/mikroelektronika/mikroe-2880/8545541)
- SIM card of your choice, this design uses a [Hologram SIM card](https://www.digikey.com/en/products/detail/hologram-inc/GL1-100/12458890)

Monitoring soil moisture level, ambient temperature, pressure, humidity, and RGB light intensity allows farmers to take action before the plant’s demise. The Soil Moisture Monitor design takes advantage of the ease of use of the Nordic nRF9160 DK and cellular network connection, sending sensor data to Golioth’s Cloud at changeable periodic intervals.

You should buy all the necessary components from DigiKey (listed above), load the [precompiled firmware image](https://github.com/golioth/reference-design-soil-moisture/releases/), and you are set for success to start sending data to the [Golioth Cloud](https://console.golioth.io/). You benefit from the well-tested software running on the [nRF9160 DK](https://www.nordicsemi.com/Products/Development-hardware/nrf9160-dk) and can immediately connect to the Golioth Cloud with the free Prototype tier. Connect up to 50 devices at no cost, utilizing all the Device Management Features Golioth has to offer, like Over-The-Air Firmware Updates, LightDB State, LightDB Stream, Logging, Settings, and Remote Procedure Calls.

If you want to deep dive into Zephyr RTOS and expand this Reference Design, head to the project’s [GitHub page](https://github.com/golioth/reference-design-soil-moisture), clone the repository, and modify the open-source code to truly make this your own customizable device.

---

<div class="post-metadata">

**Author:** ![bidrohini](https://avatars.discourse-cdn.com/v4/letter/b/ecae2f/32.png) [@bidrohini](https://forum.digikey.com/u/bidrohini)\
**Post date:** [November 7, 2023, 6:43pm UTC](https://forum.digikey.com/t/how-to-measure-soil-moisture-over-a-cellular-connection/36388/2 "2023-11-07T18:43:23Z")

</div>

Most of the products in your list are not avaialble where I live. Can I use low cost moisture sensors like these which are usually from dfrobot or some non-branded chinese component shops?

> **[Soil Moisture Sensor Library for Proteus V2.0 - The Engineering Projects](https://www.theengineeringprojects.com/2021/05/soil-moisture-sensor-library-for-proteus-v2-0.html)**
>
> In today's tutorial, I am going to share a new Soil Moisture Sensor Library for Proteus V2.0. You should also have a look at its previous ...

---

<div class="post-metadata">

**Author:** ![Robert\_1552](https://avatars.discourse-cdn.com/v4/letter/r/e47c2d/32.png) [@Robert\_1552](https://forum.digikey.com/u/Robert_1552)\
**Post date:** [November 7, 2023, 7:09pm UTC](https://forum.digikey.com/t/how-to-measure-soil-moisture-over-a-cellular-connection/36388/3 "2023-11-07T19:09:12Z")

</div>

here is moisture sensors we do carry. [Click Here](https://www.digikey.com/en/products/filter/expansion-boards-daughter-cards/797?s=N4IgjCBcpmAMVQGMoDMCGAbAzgUwDQgD2UA2iAMwDsAbAJxh0gC6hADgC5QgDKHATgEsAdgHMQAXylA)

---

<div class="post-metadata">

**Author:** ![marko-golioth](https://sea2.discourse-cdn.com/digikey/user_avatar/forum.digikey.com/marko-golioth/32/42341_2.png) [@marko-golioth](https://forum.digikey.com/u/marko-golioth)\
**Post date:** [November 8, 2023, 8:39am UTC](https://forum.digikey.com/t/how-to-measure-soil-moisture-over-a-cellular-connection/36388/4 "2023-11-08T08:39:04Z")

</div>

Hey bidrohini,

This project uses the [MikroE Hydro Probe Click](https://www.digikey.com/en/products/detail/mikroelektronika/mikroe-4131/12822008) that has the [MCP3221](https://download.mikroe.com/documents/datasheets/mcp3221.pdf) ADC to convert moisture level to a digital value. If you would to use the [The Cellular IoT Soil Moisture Monitor reference design](https://projects.golioth.io/reference-designs/cellular-iot-soil-moisture-monitor/) as is, the Soil Moisture sensor of your choice must have the same ADC on board. A good thing to note is that there is no Zephyr support for MCP3211 ADC at the moment, and the data from the ADC register is read using the I2C read calls in the `app_work.c` file.

If you were to choose a Soil Moisture sensor with a different ADC, make sure to implement the communication with the sensor and read the appropriate registers.

---

<div class="post-metadata">

**Author:** ![bidrohini](https://avatars.discourse-cdn.com/v4/letter/b/ecae2f/32.png) [@bidrohini](https://forum.digikey.com/u/bidrohini)\
**Post date:** [November 11, 2023, 8:17am UTC](https://forum.digikey.com/t/how-to-measure-soil-moisture-over-a-cellular-connection/36388/5 "2023-11-11T08:17:17Z")

</div>

Thank you so much, sir.
