TEP DOWNLOAD CENTER

Project Files of Capacitive Soil Moisture Sensor Library for Proteus V1.0 with Arduino

Libraries Code Projects Simulation
tep://download-terminal capsoil-tep-v1-0-4efb30a054ad45b19fdefe1306a88997.zip ZIP archiveV1.0Verified32 downloadsFree
Capacitive Soil Moisture Sensor Library for Proteus V1.0: the sensor in a pot with its STATUS panel
Proteus library · File 1 of 1

Capacitive Soil Moisture Sensor Library for Proteus V1.0

Capacitive Soil Moisture Sensor Library for Proteus V1.0 comes as a ZIP archive of 10 files (1.2 MB, 2.7 MB unpacked) holding Proteus library files, simulation model DLLs, a Proteus simulation, an Arduino sketch and compiled HEX firmware.

  • LIBProteus library
  • DLLProteus model
  • DSNProteus simulation
  • INOArduino sketch
  • HEXHEX firmware

Description

Capacitive Soil Moisture Sensor Library for Proteus V1.0 is the download package that goes with our tutorial Capacitive Soil Moisture Sensor Library for Proteus V1.0 with Arduino. On this page you can download the ZIP file (1.2 MB) and see what is inside before you save it: 10 files in 5 folders, the Proteus library files (LIB and IDX), the simulation model (DLL), a ready Proteus simulation, an Arduino sketch and the compiled HEX firmware. The tutorial explains the design; this page gets the files onto your computer and into use.

What this library is

Capacitive-Soil-Moisture-Library-for-Proteus-v1.0.zip with the capacitive soil moisture sensor v1.2 (0 - 3.0 V on AOUT, highest in air, the soil's permittivity from the Topp equation, a board's own air and water values), Simple and Advance (TEPCAPSOIL.LIB and TEPCAPSOIL.DLL), our Arduino UNO V4.0 library with its built-in serial monitor (ArduinoV4TEP.LIB and TEPARDUINO.DLL), the two-UNO simulation with its HEX file, the demo sketch and a README.

This is version 1.0; older or newer releases, when they exist, are listed in the Development tab.

What is inside the ZIP file

  • ArduinoV4TEP.LIB – Proteus library, 201.9 KB
  • TEPCAPSOIL.LIB – Proteus library, 60.1 KB
  • TEPARDUINO.DLL – Simulation model, 883.5 KB
  • TEPCAPSOIL.DLL – Simulation model, 312.5 KB
  • Capacitive-Soil-Moisture-ArduinoUnoV4.pdsprj – Proteus simulation, 23.9 KB
  • Soil_Capacitive_Demo.ino – Arduino sketch, 4.1 KB
  • and 4 more, all listed in the File Structure tab

The archive unpacks to 2.7 MB and carries its own README (README.txt), shown in the README tab above.

How to download

Use the download panel at the top of this page: after the counter (30 seconds for guests, 10 for members) the black button unlocks and the ZIP file comes straight from our content network. If the browser opens it instead of saving, use Save as; extract the whole archive before using anything inside it.

How to install

  • Step 1: Extract the ZIP file with Windows (Extract All), 7-Zip or WinRAR, keeping its folders.
  • Step 2: Close Proteus and copy ArduinoV4TEP.LIB and TEPCAPSOIL.LIB into its LIBRARY folder (Proteus 8: C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\LIBRARY).
  • Step 3: Copy TEPARDUINO.DLL and TEPCAPSOIL.DLL into the MODELS folder next to it, so the part simulates.
  • Step 4: Start Proteus, press P and search for "ArduinoV4TEP"; place and wire it as in the tutorial.
  • Step 5: Open Soil_Capacitive_Demo.ino in the Arduino IDE, pick board and port and Verify (Export Compiled Binary gives the HEX).
  • Step 6: In Proteus set the controller's Program File to Soil_Capacitive_Demo.hex; on hardware, flash the same file.
  • Step 7: Open Capacitive-Soil-Moisture-ArduinoUnoV4.pdsprj in Proteus and press Play.

Read the detailed guide

This page is for the files. The full tutorial, Capacitive Soil Moisture Sensor Library for Proteus V1.0 with Arduino, explains the circuit and the code step by step and shows the working results and the simulation; read it before you build. Questions about the download or the installation go in the comments below; more Proteus downloads are listed further down this page.

Read Capacitive Soil Moisture Sensor Library for Proteus V1.0 with Arduino

File Structure

capsoil-tep-v1-0-4efb30a054ad45b19fdefe1306a88997.zip10 files · 5 folders · 2.7 MB unpacked
CAPSOIL-TEP-v1.0/10 files · 2.7 MB
Arduino Code/1 file · 4.1 KB
Soil_Capacitive_Demo/1 file · 4.1 KB
INO Soil_Capacitive_Demo.inoArduino sketch 4.1 KB
Proteus Library Files/2 files · 262 KB
LIB ArduinoV4TEP.LIBProteus library 201.9 KB
LIB TEPCAPSOIL.LIBProteus library 60.1 KB
Proteus Model Files/2 files · 1.2 MB
DLL TEPARDUINO.DLLSimulation model 883.5 KB
DLL TEPCAPSOIL.DLLSimulation model 312.5 KB
Proteus Simulation/4 files · 1.2 MB
DSN Capacitive-Soil-Moisture-ArduinoUnoV4.pdsprjProteus simulation 23.9 KB
HEX Soil_Capacitive_Demo.hexCompiled HEX file 18.8 KB
DLL TEPARDUINO.DLLSimulation model 883.5 KB
DLL TEPCAPSOIL.DLLSimulation model 312.5 KB
TXT README.txtText file 21.3 KB

README

README.txt 362 lines
CAPACITIVE SOIL MOISTURE SENSOR LIBRARY FOR PROTEUS - V1.0 (THE v1.2 BOARD, ANALOG OUTPUT)
Designed by The Engineering Projects
www.TheEngineeringProjects.com

IMPORTANT LINKS
Article (read it first - pictures, step by step, every feature explained):
  https://www.theengineeringprojects.com/2026/10/capacitive-soil-moisture-sensor-library-for-proteus-v1-0.html
Report a bug or suggest a feature (our forum):
  https://www.theengineeringprojects.com/forum/category/capacitive-soil-moisture-proteus-library
The demo runs on our Arduino UNO V4.0 (included) - working LEDs, RESET and a
built-in serial monitor, no Virtual Terminal to wire - its own article:
  https://www.theengineeringprojects.com/2026/10/arduino-uno-library-for-proteus-v40.html
The built-in monitor is our TEP Serial Monitor Advance - its own article:
  https://www.theengineeringprojects.com/2026/10/serial-monitor-advance-proteus-library.html
Support us (the libraries are free):
  https://www.theengineeringprojects.com/donate

FILE STRUCTURE
CAPSOIL-TEP-v1.0/
|-- Proteus Library Files/
|   |-- ArduinoV4TEP.LIB                              201.9 KB   TEP Arduino boards V4.0 (UNO), to LIBRARY
|   |-- TEPCAPSOIL.LIB                                 60.1 KB   the capacitive soil moisture sensor, to LIBRARY
|-- Proteus Model Files/
|   |-- TEPARDUINO.DLL                                883.5 KB   the Arduino board model, to MODELS
|   |-- TEPCAPSOIL.DLL                                312.5 KB   the soil moisture sensor model, to MODELS
|-- Proteus Simulation/
|   |-- Capacitive-Soil-Moisture-ArduinoUnoV4.pdsprj   23.9 KB   demo: 2 UNOs, 2 sensors on A0
|   |-- Soil_Capacitive_Demo.hex                       18.8 KB   both UNOs (demo sketch V1.0)
|   |-- TEPARDUINO.DLL                                883.5 KB   copy of the board model
|   |-- TEPCAPSOIL.DLL                                312.5 KB   copy of the model
|-- Arduino Code/
|   |-- Soil_Capacitive_Demo/Soil_Capacitive_Demo.ino    4.1 KB   the demo sketch (source of the .hex)
|-- README.txt                                        ~22.3 KB   this file
Total: 2.66 MB (unzipped). The C++ source code of the model is not included.

WHAT IS IT?
A simulation model of the capacitive soil moisture sensor v1.2: the long
black board whose lower part goes into the soil, with a 555 oscillator and
a 3.3 V regulator on its upper part. Unlike the two-fork resistive sensors,
its copper never touches the soil: two copper areas under the solder mask
form a capacitor, and the soil around them is its dielectric. Water has a
permittivity of about 80, dry soil about 3, air 1 - so the wetter the soil,
the larger the capacitance and the LOWER the output on AOUT. Our own model,
written from the published data - not a part that shows a number:
  * The output: 0 - 3.0 V on AOUT from a 3.3 - 5.5 V supply (about 5 mA),
    highest in air and lowest in water. The published example calibrates a
    board with the probe in air and in water: about 520 and 260 on a
    10-bit, 5 V analogRead (2.54 V and 1.27 V); a sketch maps between them:
      moisture % = (air - reading) x 100 / (air - water)
  * Every board differs: the properties AIR and WATER are this board's
    voltages in air and in water (2.54 / 1.27 V = the published 520 / 260;
    the demo's second board has 2.93 / 1.46 V = 600 / 300) - calibrate each
    board.
  * The soil: its water content by volume (VWC, %) gives its permittivity
    by the Topp equation (Topp, Davis and Annan, 1980):
      permittivity = 3.03 + 9.3 q + 146 q^2 - 76.7 q^3     (q = VWC / 100)
    and the output goes from the air value towards the water value as the
    permittivity rises (the model's curve). The sketch's % is the place
    between air and water - not the water content: moist soil with 25 %
    water by volume reads about 54 %.
  * The depth: the probe pushed in only part of the way to its white line
    sees air along the rest and reads drier. An air gap (loose soil around
    the board) reads drier too.
  * The 3.3 V regulator: from 3.55 V up the output does not change with the
    supply; below it the regulator drops out and the output falls with it
    (a 3.3 V supply: 92 %).
  * The output follows the soil with a short lag (the board's filter, about
    0.5 s) and has a few mV of noise - so a sketch takes the median of many
    readings.
  * The soil around the probe: its water (property VWC); the panel's - / +
    (2 % a click) and the depth (10 % a click), six presets (DRY 5, DAMP 15,
    MOIST 25, WET 35, SOAKED 45 % water by volume, GLASS - the probe in a
    glass of water) and four actions: WATER IT (a cup of water: +12 % that
    soaks in over a few seconds), DRY OUT (sun and wind dry the soil, much
    faster than real life; a second click stops it), AIR GAP (and back) and
    PROBE OUT (the probe in air, and back).
The board is drawn at about its real size: the header on its top edge (A,
-, +), the 555, the regulator, the resistors and capacitor, the white line
and the sensing area below it; the 3-wire cable runs to three dupont plugs -
the symbol's pins VCC, GND and AOUT. TEP additions: the SIMPLE / ADVANCE
badge, the PWR LED and the panel button on the board, and the pot - the
soil's colour follows its water, its surface the probe's depth, a glass of
water with GLASS, the soil below the tip with PROBE OUT, light gaps beside
the board with AIR GAP. The pot, the LED, the badge, the button and the
panels are TEP additions; the real board has none of them.

TWO DEVICES IN ONE LIBRARY (search "CAPSOIL" in Pick Devices):
  Simple    CAPSOILTEP       "Capacitive Soil Moisture V1.0 - Simple"
  Advance   CAPSOILADVTEP    (the same, "- Advance")
            (pins VCC, GND and AOUT on the left; category Sensors > Soil)
  Simple    On-Sheet Panel: the STATUS panel beside the pot - the banner
            (the calibrated reading, the water and the output; amber for a
            board off the published 520 / 260, the probe not in up to its
            line, an air gap, the probe in air, a supply below 3.55 V; blue
            in a glass of water; red without power; grey while the output
            settles), THE SOIL: - / + for the water and the depth, a ruler
            0 - 50 % water by volume, six presets, four actions, ten readouts
            (STATE, OUTPUT, THE SOIL, THE PROBE, PERMITTIVITY, READS 520/260,
            CALIBRATED, ANALOGREAD, BOARD AIR/WATER, SUPPLY) and the last
            four events. The red X closes the panel; the PANEL button on the
            board opens it again.
  Advance   Pop-Up Panel: only the board and the pot on the schematic; at Run
            a TEP pop-up window opens - the look of the TEP Serial Monitor.
            Tabs Sensor, Event log and Tests; gear and ? icons for Settings
            and Help; the palette icon switches the theme:
              Sensor     the presets on the toolbar; THE SOIL AT THE PROBE
                         (WATER -10 / -2 / +2 / +10, DEPTH -10 / +10, the
                         actions, the ruler); WHAT THE BOARD GIVES (AOUT,
                         the reading with 520 / 260, the calibrated reading,
                         the water by volume); THE CURVE with this moment's
                         point; the last 150 s
              Event log  power, the readings, the soil, notes and warnings
                         (filters, pause, clear)
              Tests      Output & calibration, Soil & water, Supply & wiring
                         (THE TEST TOOLS)
              Settings   theme, text size, open at Run, window size
              Help       report a bug, suggest a feature, article, updates,
                         donate, forum; Copy diagnostics for a bug report
            The OPEN PANEL button on the board opens the window again.
Both devices use one model, TEPCAPSOIL.DLL.

TEST STATUS
V1.0: verified in Proteus 8.5 on 18 Oct 2026 (the demo project as shipped:
two Arduino UNO V4.0 boards with their built-in monitors; node 1 with the
Simple sensor in moist soil, 25 % water by volume, a board with the
published 520 / 260; node 2 with the Advance sensor in the same soil, a
board with 600 / 300). Two runs with the same files: node 2 and FILTER in
the first, node 1's STATUS panel with the real mouse in the second.
What the runs showed:
  * ARD1 from the fourth report: "#4  t=4 s  ADC 381  1.860 V  moisture
    53 %  wet".
  * ARD2: the same soil read as 31 % "dry" (ADC 439) - its board is not
    520 / 260. PROBE OUT - ADC 600, "moisture 0 %  dry  - drier than the
    air value: calibrate AIR"; AIR; GLASS - ADC 299 - 301; WATER - "air =
    600, water = 301"; MOIST - 53 - 54 % "wet", as on ARD1.
  * WATER IT - 53 % rising to 68 % "very wet" in ten seconds; DRY OUT -
    falling to 45 %; half depth (the probe 50 % of the way in) - 34 %
    "dry"; an air gap - 45 % for the 53 % of the soil fully in.
  * The tools: Output & calibration (2.143 V = analogRead about 438; 32 %
    with 520 / 260, 54 % with 600 / 299), Soil & water (20 % water =
    permittivity 10.3, 46 %), Supply & wiring (5.00 V, the regulator
    steady).
  * FILTER 0 on ARD1 - single readings of 380 - 382 (53 %), FILTER 1 back.
  * Node 1 with the guarded real mouse (every click read back from the
    model): DRY - 18 - 19 % "dry"; WATER IT - up to 36 % "wet"; SOAKED - 78
    % "very wet"; PROBE OUT - ADC 520, "moisture 0 %  dry  - probe in
    air?"; the pot's soil colour and surface follow; the red X closed the
    panel, PANEL opened it again.
  * 161.7 s of simulation took 431 s (about 0.38 x real time) with the
    pop-up and both monitors open; the node-1 run 46.4 s in 110 s.

INSTALLATION (about 2 minutes)
1. Close Proteus. Extract the WHOLE ZIP to a normal folder (e.g. Desktop).
2. Copy everything in "Proteus Library Files" (TEPCAPSOIL.LIB with the two
   parts, and our Arduino library V4.0, ArduinoV4TEP.LIB, with the ARDUINO
   UNO V4.0 used by the demo) to the LIBRARY folder of Proteus, for example:
     C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\LIBRARY
   (on some PCs: C:\ProgramData\Labcenter Electronics\Proteus 8 Professional\
   LIBRARY - use the folder that already holds Proteus's own .LIB files).
3. Copy TEPCAPSOIL.DLL and TEPARDUINO.DLL from "Proteus Model Files" to the
   MODELS folder (...\Proteus 8 Professional\MODELS).
   ArduinoV4TEP.LIB and TEPARDUINO.DLL are the files of our Arduino Library
   V4.0 - if you have it, they are the same.
4. Delete TEPCAPSOIL.IDX from the LIBRARY folder if it is there (Proteus
   makes a new index).
5. Start Proteus. In Pick Devices (P) search "CAPSOIL".

RUN THE DEMO
"Proteus Simulation\Capacitive-Soil-Moisture-ArduinoUnoV4.pdsprj" - keep the
.hex file and the two DLLs beside the project.
  ARD1: Arduino UNO V4.0 + U1 = a capacitive soil moisture sensor (Simple):
        moist soil, 25 % water by volume, a board with the published 520 /
        260.
  ARD2: Arduino UNO V4.0 + U2 = a capacitive soil moisture sensor
        (Advance): the same soil, a board with 600 / 300 (2.93 / 1.46 V).
  Both UNOs run Soil_Capacitive_Demo.hex and each has its serial monitor
  built in ("TEP Arduino UNO - ARD1" / "- ARD2"). AOUT goes to A0 on both.
  1. Press Run. Both UNOs' monitor windows open (9600 baud) and so does the
     pop-up of U2 (move it aside - it opens over the schematic).
  2. The sketch reads A0 every 40 ms, takes the median of the last 30
     readings each second and prints the ADC value, the voltage, the
     moisture % and a word (dry below 35 %, wet below 65 %, very wet).
  3. ARD2 reads the same soil much drier than ARD1: its board is not the
     published 520 / 260. Calibrate it: PROBE OUT in U2's pop-up, type AIR;
     PROBE OUT again and GLASS, type WATER; then MOIST - now both read alike.
  4. Change the soil on U1's STATUS panel or in U2's pop-up (- / +, the
     depth, the presets, WATER IT, DRY OUT, AIR GAP, PROBE OUT).
  5. Type FILTER 0 in a monitor to see single readings (noisier), FILTER 1
     for the median again.
Closed a monitor window? Click the UNO's USB port.

WIRING
  Sensor wire     Arduino UNO
  VCC             5V (3.3 - 5.5 V; in Proteus a VCC terminal)
  GND             GND
  AOUT            A0 (any analog input)
The sensor's AOUT reaches its UNO through a net label - SOIL_1 (node 1) and
SOIL_2 (node 2): the same name = connected. VCC and GND are Proteus power
terminals. The serial monitor needs no wires: it is built into the Arduino
UNO V4.0.
  int raw = analogRead(A0);
  int moisture = map(raw, 520, 260, 0, 100);   // air, water: calibrate yours
REAL HARDWARE:
 * Calibrate each board in air and in water, on the board and the supply
   you will use - the counts depend on the ADC's reference.
 * Push the probe in up to the white line, never deeper, and press the soil
   around it: air beside the board reads drier.
 * The electronics above the line are not waterproof; seal the board's cut
   edges and parts (nail varnish, heat-shrink) for long use in the soil.
 * Some cheap copies miss a resistor or use a 555 that does not run on 3.3
   V: their output barely changes - test in air and in water first.
 * The output is 0 - 3.0 V: fine for a 5 V or a 3.3 V board's ADC.

THE TEST TOOLS (Advance, Tests tab) - what they really measure
Every tool reads the model during the running simulation; each shows one
"Good for:" line and, where it judges, a verdict per row (green = fine, amber
= check, red = wrong, grey = only an explanation).
  Output & calibration
                Good for: readings below 0 or above 100 %, two boards that
                disagree, calibrating in air and in water. The output and its
                analogRead value, this board's air and water values, the
                reading with 520 / 260 and calibrated, one ADC step.
  Soil & water  Good for: readings that are too dry, a reading that changes
                when you push the probe, what the % really means. The soil's
                water and permittivity, the depth, an air gap, what the probe
                sees.
  Supply & wiring
                Good for: a reading that changes with the USB port, a 3.3 V
                board, a probe that stopped working after watering. The
                power, the regulator, AOUT, the line on the probe.

THE DEMO SKETCH ON THE SERIAL MONITOR (Soil_Capacitive_Demo V1.0)
  AIR               the probe is in air: air = the reading (520 at the start)
  WATER             the probe is in a glass of water up to its line: water =
                    the reading (260 at the start)
  FILTER 0 / 1      one reading instead of the median of 30, and back
  HELP              the command list
Commands are not case-sensitive; type them in the UNO's built-in monitor and
press Enter. The report line: "#N  t=.. s  ADC n  v V  moisture x %  word"
with "  - probe in air?" below 3 %, "  - drier than the air value:
calibrate AIR" below -5 % and "  - wetter than the water value: calibrate
WATER" above 105 % (the % printed is kept within 0 - 100).

EXPECTED MONITOR OUTPUT (the start)
ARD1 (moist soil, 25 %, a board with the published 520 / 260):
  TEP capacitive soil moisture sensor - demo V1.0
  AOUT on A0: a reading every 40 ms, the median of 30 each second, air 520, water 260
  Commands: AIR (probe in air), WATER (probe in water), FILTER 0 / 1, HELP
  #1  t=1 s  ADC 279  1.362 V  moisture 92 %  very wet
  #2  t=2 s  ADC 361  1.763 V  moisture 61 %  wet
  #3  t=3 s  ADC 378  1.846 V  moisture 54 %  wet
  #4  t=4 s  ADC 381  1.860 V  moisture 53 %  wet
(the first reports are high: the median still holds readings from
power-on, while the output rises)
ARD2 (the same soil, a board with 600 / 300):
  #6  t=6 s  ADC 439  2.144 V  moisture 31 %  dry
after PROBE OUT, AIR, GLASS and WATER:
  air = 600, water = 301
and back in the moist soil:
  #26  t=26 s  ADC 438  2.139 V  moisture 54 %  wet

PROPERTIES (double-click the part > Edit Properties)
  VWC          the soil's water at the start, % by volume (default 25)
  AIR          this board's output in air at 5 V (default 2.54 V = 520)
  WATER        this board's output in water at 5 V (default 1.27 V = 260)
  PANEL        Simple only: the STATUS panel at the start, OPEN or CLOSED
Every run starts again from the properties.
The demo's UNOs (ARDUINO UNO V4.0): PROGRAM Soil_Capacitive_Demo.hex,
MONITOR YES (the built-in monitor), BAUD 9600, AUTOOPEN YES, BOOTLOADER YES.

LINKS.INI (OPTIONAL)
The Help page cards of the Advance device open web pages. To point them
somewhere else without a new DLL, put a text file named links.ini next to
TEPCAPSOIL.DLL with lines KEY=URL, for example:
  ARTICLE=https://www.theengineeringprojects.com/...
Keys: WEBSITE, FORUM, BUG_REPORT, FEATURE_REQUEST, ARTICLE, USER_GUIDE,
UPDATE_CHECK, DONATE. Only http:// and https:// links are used; lines starting
with # are comments.

TROUBLESHOOTING
* The same soil reads differently on two boards: their air and water values
  differ - calibrate each one (AIR, WATER).
* Readings that are too dry: the probe is not in up to its line, or there is
  air around it - push it in and press the soil.
* "drier than the air value": the sketch's air value is lower than this
  board gives in air - calibrate AIR.
* A reading that changes when you change the USB port or the board: the
  supply is below 3.55 V (the regulator drops out) or the ADC reference
  differs - calibrate on that supply.
* Readings that jump by a step or two: the noise - keep the median filter on
  (FILTER 1).
* The parts are not simulated: TEPCAPSOIL.DLL is missing from MODELS and
  from the project folder. No UNO / no monitor window: TEPARDUINO.DLL is
  missing, or click the UNO's USB port.
* Advance: the pop-up does not appear - click OPEN PANEL on the board, or
  turn "Open the panel at Run" on its Settings page back on.

BUG REPORTS AND FEATURE REQUESTS
Please post them in our forum with a screenshot, the Serial Monitor text, the
simulation log and (Advance) the Copy diagnostics text:
  https://www.theengineeringprojects.com/forum/category/capacitive-soil-moisture-proteus-library

SUPPORT US
This library is free. If it saves you time, please support our work:
  https://www.theengineeringprojects.com/donate

WEBSITE
  https://www.theengineeringprojects.com/

LICENCES AND THIRD-PARTY NOTES
* The capacitive soil moisture model (TEPCAPSOIL.DLL), the symbols and
  artwork and the Arduino Library V4.0 (ArduinoV4TEP.LIB / TEPARDUINO.DLL,
  with its built-in TEP Serial Monitor Advance) are made by The Engineering
  Projects. The model is an independent implementation written from the
  published data (the pins, the supply, the output range, the calibration in
  air and in water) and the Topp equation from the soil science literature.
  The model uses only standard Windows libraries; no Visual C++
  redistributable is needed. The C++ source code is not included.
* Arduino UNO V4.0 (ArduinoV4TEP.LIB / TEPARDUINO.DLL, our Arduino Library
  V4.0 - its microcontroller is Proteus's own AVR model): The Engineering
  Projects, https://www.theengineeringprojects.com/2026/10/arduino-uno-library-for-proteus-v40.html
* The demo sketch uses no library - none is needed (our own code: the
  median filter, the calibration map).
* The .hex file is built from the demo sketch and the Arduino AVR core 1.8.6,
  which includes LGPL-licensed code; its source code is available at
  https://github.com/arduino/ArduinoCore-avr/tree/1.8.6
  The demo sketch's source is in "Arduino Code", so the .hex can be rebuilt
  with other versions of the core (REBUILDING THE FIRMWARE).
* Proteus is a product of Labcenter Electronics and is not included. Arduino
  is a trademark of Arduino SA. This library is not made or endorsed by the
  sensor's makers or by Labcenter.

REBUILDING THE FIRMWARE (OPTIONAL)
The HEX file is supplied; Arduino IDE is not needed to run the demo. To edit
the sketch, open Arduino Code\Soil_Capacitive_Demo\Soil_Capacitive_Demo.ino
in the Arduino IDE, select Arduino Uno and use Sketch > Export Compiled
Binary. Replace the simulation's .hex with the exported HEX.
The sketch needs 6,836 bytes of flash and 342 bytes of RAM.

MODEL SCOPE AND LIMITS
Modelled: the output between this board's air and water voltages for the
permittivity around the probe, the soil's permittivity from its water (the
Topp equation), the depth and an air gap as air beside the board, the
regulator and its drop-out below 3.55 V, the output's lag and noise, power on
/ off (about 5 mA), the soil (water, the presets and actions).
How the part works with the circuit: VCC and GND power the board (on or
off, its current); AOUT is a voltage source behind 1 kohm.
Not modelled: the 555's frequency and the board's electronics in detail,
the soil's salinity and temperature (small for a capacitive probe), the kind
of soil (the Topp equation is a general fit), roots and stones, water
creeping into the board's edges, ageing. The model's own choices: the curve
from permittivity to output, the regulator's drop (0.25 V), the depth and
air-gap mixing, the lag (0.5 s), the noise (3 mV, a new value every 20 ms),
WATER IT (+12 %, tau 4 s, at most 48 %), DRY OUT (towards 3 %, tau 40 s,
speeded up), the presets' values.

VERSION
TEP Capacitive Soil Moisture library V1.0 (Oct 2026). Devices CAPSOILTEP /
CAPSOILADVTEP (TEPCAPSOIL.LIB / TEPCAPSOIL.DLL). Demo sketch
Soil_Capacitive_Demo V1.0 (A0, the median of 30 readings, no library). Demo
board: ARDUINO UNO V4.0 (TEP Arduino Library V4.0) with its built-in serial
monitor.
Advertisement

Development1 release

  1. V1.0Capacitive Soil Moisture Sensor Library for Proteus V1.0this page

    V1.0 is the only release in the Download Center so far. When a newer version is published, it appears above with its own download page.

Installation8 steps

From the download to a working project, in order. The steps follow what the package contains.

You will need

  • Proteus Design SuiteProteus 8 or newer (Labcenter), on Windows
  • Arduino IDE1.8 or 2.x, with the board of the tutorial chosen under Tools → Board
  • Any archive toolWindows, macOS and Linux extract ZIP files on their own

Steps

  1. 1

    Extract the archive

    Right-click capsoil-tep-v1-0-4efb30a054ad45b19fdefe1306a88997.zip and choose Extract All (or open it with 7-Zip or WinRAR) into a folder you can find again. Keep its folder structure (CAPSOIL-TEP-v1.0) as it is.

  2. 2

    Copy the library files into Proteus

    Move ArduinoV4TEP.LIB and TEPCAPSOIL.LIB and the files into the LIBRARY folder of your Proteus installation: C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\LIBRARY for Proteus 8, or the matching Proteus 7 folder. Older versions keep it under ProgramData\Labcenter Electronics. If Proteus is open, close it first.

  3. 3

    Add the simulation model

    Copy TEPARDUINO.DLL and TEPCAPSOIL.DLL into the MODELS folder next to LIBRARY, so the component can run, not only be drawn.

  4. 4

    Restart Proteus and place the component

    Start Proteus, open a schematic, press P (Pick Devices) and search for the component by the name used in the tutorial. It appears with its pins ready to wire.

  5. 5

    Open the sketch in the Arduino IDE

    Open Soil_Capacitive_Demo.ino, select your board and port under Tools, then Verify. Sketch → Export Compiled Binary writes the HEX file a simulation needs.

  6. 6

    Load the HEX file

    In Proteus double-click the microcontroller, set Program File to Soil_Capacitive_Demo.hex and run the simulation. For real hardware, flash the same file with your programmer.

  7. 7

    Open the example simulation

    Open Capacitive-Soil-Moisture-ArduinoUnoV4.pdsprj in Proteus to see the wiring exactly as in the tutorial. Check the controller's Program File path, then press Play.

  8. 8

    Follow the tutorial

    Capacitive Soil Moisture Sensor Library for Proteus V1.0 with Arduino explains every connection and setting in order; keep it open beside the files while you build.

How to add a library in Proteus 8

FAQs9 questionsContact TEP

How do I download Capacitive Soil Moisture Sensor Library for Proteus V1.0?

Wait for the 30-second guest countdown on this page, then press the download button; the file comes straight from our storage. Members who are logged in skip the wait. If the browser opens the file instead of saving it, use its Save as option. The download link is made for you when the countdown ends and works for 15 minutes; a saved or shared link stops working, so share this page instead.

What is inside the archive?

Capacitive Soil Moisture Sensor Library for Proteus V1.0 comes as a ZIP archive of 10 files (1.2 MB, 2.7 MB unpacked) holding Proteus library files, simulation model DLLs, a Proteus simulation, an Arduino sketch and compiled HEX firmware. Open the File Structure tab for the full list of 10 files.

What should I do if the download does not start?

Check the browser's download list first; an ad blocker or a company firewall can also hold it back, so try another browser or network. If the file arrives incomplete, download it again. For an installation problem, read the Install tab or tell us in the comments with your software version and the exact error message.

Is this file free?

Yes. Every file in the TEP Download Center is free for learning, personal and student projects. If you share it, link back to this page or the tutorial so others find the latest version.

How do I check that the file arrived complete?

Compare its SHA-256 with the one on this page, d2fdefc297655e316488c299d6cbe520423bb0b582a73ffaceb8691d1dda3126. In PowerShell run Get-FileHash "capsoil-tep-v1-0-4efb30a054ad45b19fdefe1306a88997.zip"; on macOS or Linux run shasum -a 256 "capsoil-tep-v1-0-4efb30a054ad45b19fdefe1306a88997.zip". The same value means the file is exactly the one in our storage; a different one means the download broke off, so download it again.

Do I need WinRAR to open the ZIP file?

No. Windows, macOS and Linux open ZIP archives on their own (Extract All, or double-click). WinRAR and 7-Zip work too. Extract the whole archive before using the files.

Where do I put the LIB and IDX files?

Both files go into the LIBRARY folder of your Proteus installation (Proteus 8: C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\LIBRARY; Proteus 7 has the same folder under its own name). Restart Proteus afterwards and search for the component with P.

Which Proteus version does the library need?

The tutorial names the Proteus version the library was made and tested with. Most TEP libraries work in Proteus 7 and Proteus 8; if the component does not appear after a restart, check that both the LIB and the IDX file were copied and that Proteus was fully closed while copying.

How do I get the HEX file into the simulation?

Compile the sketch in the Arduino IDE (Sketch → Export Compiled Binary gives you the HEX next to the sketch), then in Proteus double-click the board, set Program File to that HEX and run.

preparing · capsoil-tep-v1-0-4efb30a054ad45b19fdefe1306a88997.zip
Rating
Your download will be ready shortly
Preparing your download…

Members skip the wait. Log in or join TEP.

  • 32Total downloads
  • 4%Popularity
  • ProteusCategory
  • 0Comments
  • ssyedzainnasirUploaded by
  • 17 Oct 2026Uploaded at
Last 14 days20 downloads
SHA-256 d2fdefc297655e316488c299d6cbe520423bb0b582a73ffaceb8691d1dda3126
DocumentationCapacitive Soil Moisture Sensor Library for Proteus V1.0 with Arduino
Need help with this file? Bug report Ask a question Download problemsGet updates
Advertisement

Comments

0

Join the conversation

Start the conversationAsk a question or share how you used this download.