Skip to the content
PCBKitNew board
2 layers18.1 × 57.4 mmSoil Moisture Sensor, the printed circuit board in 3D

This project is a Soil Moisture Sensor PCB designed using KiCad 9. It detects the moisture level in soil using two conductive probes and an electronic sensing circuit.

Size
18.1 × 57.4 mm
Copper layers
2
Thickness
1.6 mm
Parts
12
Nets
11
Pads
31
Tracks, vias
74, 5
Pours
4
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
12 Oct 2026
Updated
12 Oct 2026

Overview

Soil Moisture Sensor is an open-source printed circuit board by Manideep136, from the Manideep136/Soil-Moisture-Sensor repository on GitHub. It is a 2-layer board of 18.1 × 57.4 mm with 12 parts on 11 nets, routed with 74 tracks and 5 vias.

It is built around the LM358. Its parts include 3 resistors, 3 connectors, 2 capacitors, 2 diodes and 1 IC. It belongs with the sensors and measurement boards of this library.

Main components

1

README

README.md

Soil Moisture Sensor PCB Using KiCad

📌 Project Overview

This project is a Soil Moisture Sensor PCB designed using KiCad 9. It detects the moisture level in soil using two conductive probes and an electronic sensing circuit.

The circuit uses an LM358 operational amplifier, a 10 kΩ potentiometer, resistors, capacitors, and indicator LEDs to detect changes in soil conductivity. The PCB includes two long sensing prongs that can be inserted into the soil.

The main objective of this project is to understand soil moisture detection, analog sensing circuits, and PCB design.

🎯 Objectives

  • Design a soil moisture sensing circuit.
  • Understand how soil conductivity changes with moisture.
  • Use the LM358 for signal conditioning or threshold detection.
  • Adjust the detection threshold using a potentiometer.
  • Indicate the sensor status using LEDs.
  • Design the schematic in KiCad.
  • Assign component footprints.
  • Create and route the PCB.
  • Perform ERC and DRC checks.
  • Visualize the completed PCB using KiCad's 3D Viewer.

⚙️ Working Principle

The sensor works by detecting changes in the electrical conductivity of soil.

The two sensing prongs act as electrodes. When inserted into soil, the electrical resistance between the electrodes changes depending on the soil's moisture content.

  • Wet soil: Generally provides a lower resistance between the probes because it contains more conductive moisture.
  • Dry soil: Generally provides a higher resistance between the probes.

The sensing circuit detects this change and provides a corresponding electrical signal.

The LM358 processes the sensing signal. The 10 kΩ potentiometer can be used to adjust the detection threshold, depending on the circuit configuration. The LEDs indicate the detected condition according to the actual circuit connections.

Note: The exact LED behavior depends on the schematic. Confirm which LED indicates wet or dry soil before using the sensor.

🔌 Block Diagram

text
       Soil Moisture
             |
             v
      Two Sensing Probes
             |
             v
      Sensing Circuit
             |
             v
        LM358 Circuit
             |
             v
       Indicator LEDs

🧩 Components Used

ReferenceComponentValue / Type
U1Operational amplifierLM358
RV1Potentiometer10 kΩ
R1Resistor1 kΩ
R2Resistor10 kΩ
R3Resistor1 kΩ
D1Indicator LEDAs selected
D2Indicator LEDAs selected
C1CapacitorAs per schematic
C2CapacitorAs per schematic
J1, J2ConnectorsAs per schematic
Sensor probesConductive electrodesPCB prongs

Verify the component values and reference designators against the final KiCad schematic before manufacturing.

🖥️ PCB Design Using KiCad

The PCB was designed using KiCad 9.

Design Process

  1. Create the soil moisture sensor schematic.
  2. Add the LM358, resistors, capacitors, potentiometer, LEDs, and connectors.
  3. Connect the components according to the circuit diagram.
  4. Assign suitable footprints.
  5. Update the PCB from the schematic.
  6. Arrange the components in the upper section of the board.
  7. Design the fork-shaped sensing prongs.
  8. Route the copper tracks.
  9. Configure the board outline using the Edge.Cuts layer.
  10. Run ERC in the schematic editor.
  11. Run DRC in the PCB editor.
  12. Inspect the completed board using the 3D Viewer.

📐 PCB Design Features

  • Compact circuit layout.
  • Two extended sensing prongs.
  • LM358-based sensing circuit.
  • Adjustable detection threshold.
  • LED status indication.
  • Dedicated component and connector placement.
  • PCB layout designed in KiCad.

📁 Project Structure

text
Soil-Moisture-Sensor/
├── Soil-Moisture-Sensor.kicad_pro
├── Soil-Moisture-Sensor.kicad_sch
├── Soil-Moisture-Sensor.kicad_pcb
├── README.md
└── Images/
    ├── schematic.png
    ├── pcb_layout.png
    └── 3d_view.png

🧪 Testing Procedure

  1. Inspect the PCB for solder bridges and incorrect connections.
  2. Verify the LM358 pinout and component orientation.
  3. Check the potentiometer connections.
  4. Verify LED polarity and resistor values.
  5. Run ERC and DRC in KiCad.
  6. Power the circuit using the specified supply voltage.
  7. Insert the sensing prongs into soil with different moisture levels.
  8. Adjust the potentiometer to set the detection threshold.
  9. Observe the LED response.
  10. Repeat the test with dry and moist soil.

⚠️ Design Considerations

  • Use the correct supply voltage for the LM358 circuit.
  • Ensure the two sensing electrodes remain electrically separate.
  • Keep the sensing area free of solder mask if direct soil contact is required.
  • Prevent the circuit section from contacting wet soil.
  • Protect the electronics from water and corrosion.
  • Use suitable PCB clearances and track widths.
  • Avoid applying excessive voltage directly to the sensing probes.
  • Verify the actual detection threshold experimentally.

✅ Advantages

  • Simple and compact design.
  • Adjustable moisture detection threshold.
  • Visual status indication using LEDs.
  • Easy to study and modify.
  • Suitable for learning analog electronics and PCB design.
  • Can be adapted for basic gardening and soil-monitoring experiments.

🚀 Future Improvements

  • Add an Arduino or ESP32 interface.
  • Display the moisture level on an LCD or OLED.
  • Add an analog output connector.
  • Implement digital soil moisture monitoring.
  • Add wireless monitoring using Wi-Fi.
  • Improve electrode corrosion resistance.
  • Develop an automatic plant-watering system.

📚 Learning Outcomes

Through this project, I learned:

  • Soil conductivity and moisture sensing.
  • Basic analog sensing circuits.
  • LM358 operational amplifier applications.
  • Potentiometer-based threshold adjustment.
  • LED indicator circuits.
  • KiCad schematic design.
  • Footprint assignment and PCB routing.
  • PCB outline design.
  • ERC and DRC verification.
  • PCB 3D visualization.

🛠️ Software Used

KiCad 9.0

📄 License

This project is intended for educational and learning purposes. The circuit can be modified and improved for personal electronics projects.

Parts

12
QtyValueFootprintReferences
21KResistor_SMD:R_0805_2012MetricR1, R3
2Conn_01x01_PinConnector_Wire:SolderWire-0.1sqmm_1x01_D0.4mm_OD1mmJ1, J2
2LEDLED_SMD:LED_0805_2012MetricD1, D2
10.01Capacitor_SMD:C_0805_2012MetricC2
10.01uFCapacitor_SMD:C_0805_2012MetricC1
110KResistor_SMD:R_0805_2012MetricR2
110KPotentiometer_THT:Potentiometer_ACP_CA9-H2,5_HorizontalRV1
1Conn_01x04_PinConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ3
1LM358Package_DIP:DIP-8_W7.62mmU1

Questions

How big is the Soil Moisture Sensor PCB?

It measures 18.1 × 57.4 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Soil Moisture Sensor use?

12 parts, built around the LM358. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Soil Moisture Sensor KiCad files?

From the Manideep136/Soil-Moisture-Sensor repository on GitHub, at the commit this page was made from: the board is Soil moisture sensor/Soil moisture sensor.kicad_pcb and its schematic Soil moisture sensor/Soil moisture sensor.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Soil Moisture Sensor design in my own project?

Its repository states no licence, so its author keeps all rights: ask Manideep136 before reusing the design.

Similar boards

  • 2 layers132.1 × 45.7 mmIPoS, the printed circuit board in 3D

    IPoS

    peterheinrich/InternetOverSpaghetti

    Transmitting IP packages over a pair of spaghetti thus demonstrating how media independent IP really is.

    42 parts342
  • 2 layers68.8 × 53.6 mmZArduino, the printed circuit board in 3D

    ZArduino

    zmaker/arduino_cookbook

    gli sketch del nuovo progetto Arduino Cookbook e dei video di YouTube

    46 parts269
  • 2 layers152 × 88 mmRFBitBangSMT, the printed circuit board in 3D

    RFBitBangSMT

    profdc9/RFBitBanger

    A QRP digital transceiver created from readily available parts for off-the-grid maintenance

    271 parts222
  • 2 layers118 × 103.5 mmEV Charger2, the printed circuit board in 3D

    EV Charger2

    fotherja/EV_Charger

    Arduino Uno Code for EV Charger

    62 parts167MIT
  • 2 layers113 × 62.2 mmFullScope, the printed circuit board in 3D

    FullScope

    tvlad1234/pillScopePlus

    Oscilloscope based around the STM32F401 Black Pill and a color LCD screen

    15 parts165Apache-2.0
  • 2 layers75.2 × 61.1 mmHelios, the printed circuit board in 3D

    Helios

    Grix/helios_dac

    Helios Laser DAC

    102 parts132
  • 2 layers144.1 × 182.2 mmSHVC CPU-01, the printed circuit board in 3D

    SHVC CPU-01

    starlightk7/OpenSFC

    OSHW Reproduction Parts related to the Super Famicom / Super Nintendo game console

    498 parts114CERN-OHL-S-2.0
  • 2 layers100 × 85 mmVNA, the printed circuit board in 3D

    VNA

    profdc9/VNA

    Vector Network Analyzer based on the STM32F103C8T6 bluepill

    178 parts93