TEP DOWNLOAD CENTER

Project Files of Soil Moisture Sensor Library for Proteus V3.0 (FC-28 + Arduino)

Libraries Code Projects Simulation
tep://download-terminal soil-moisture-sensor-tep-v3-0-2f326ab6cf85479a8545453f2322771d.zip ZIP archiveV3.0Verified43 downloadsFree
Soil Moisture Sensor Library for Proteus V3.0: two Arduino UNOs with blue FC-28 boards, the Soil Moisture Advance pop-up Soil page at MOIST 50 % with A0 2.930 V and ADC 600, and the TEP Serial Monitor in its Simple interface
Proteus library · File 1 of 1

Soil Moisture Sensor Library for Proteus V3.0

Soil Moisture Sensor Library for Proteus V3.0 comes as a ZIP archive of 12 files (1.4 MB, 3.1 MB unpacked) holding Proteus library files, simulation model DLLs, a Proteus simulation, an Arduino sketch and compiled HEX firmware.

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

Description

Soil Moisture Sensor Library for Proteus V3.0 is the download package that goes with our tutorial Soil Moisture Sensor Library for Proteus V3.0 (FC-28 + Arduino). On this page you can download the ZIP file (1.4 MB) and see what is inside before you save it: 12 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

Soil-Moisture-Sensor-Library-for-Proteus-v3.0.zip with Soil Simple and Advance (TEPSOIL.LIB and TEPSOIL.DLL), the TEP Serial Monitor and Arduino UNO libraries for Proteus, the two-UNO soil moisture simulation with its HEX file, the demo sketch and a README.

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

What is inside the ZIP file

  • ArduinoV3TEP.LIB – Proteus library, 95.6 KB
  • TEPSERIALMON.LIB – Proteus library, 11.1 KB
  • TEPSOIL.LIB – Proteus library, 239.3 KB
  • ArduinoV3TEP.IDX – Library index, 830 B
  • TEPSERIALMON.DLL – Simulation model, 978 KB
  • TEPSOIL.DLL – Simulation model, 361 KB
  • and 6 more, all listed in the File Structure tab

The archive unpacks to 3.1 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 ArduinoV3TEP.LIB, TEPSERIALMON.LIB and TEPSOIL.LIB and ArduinoV3TEP.IDX into its LIBRARY folder (Proteus 8: C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\LIBRARY).
  • Step 3: Copy TEPSERIALMON.DLL and TEPSOIL.DLL into the MODELS folder next to it, so the part simulates.
  • Step 4: Start Proteus, press P and search for "ArduinoV3TEP"; place and wire it as in the tutorial.
  • Step 5: Open Soil_Moisture.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_Moisture.hex; on hardware, flash the same file.
  • Step 7: Open Soil-Moisture-ArduinoUnoV3.pdsprj in Proteus and press Play.

Read the detailed guide

This page is for the files. The full tutorial, Soil Moisture Sensor Library for Proteus V3.0 (FC-28 + 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 Soil Moisture Sensor Library for Proteus V3.0 (FC-28 + Arduino)

File Structure

soil-moisture-sensor-tep-v3-0-2f326ab6cf85479a8545453f2322771d.zip12 files · 5 folders · 3.1 MB unpacked
SOIL-TEP-v3.0/12 files · 3.1 MB
Arduino Code/1 file · 8.3 KB
Soil_Moisture/1 file · 8.3 KB
INO Soil_Moisture.inoArduino sketch 8.3 KB
Proteus Library Files/4 files · 346.8 KB
IDX ArduinoV3TEP.IDXLibrary index 830 B
LIB ArduinoV3TEP.LIBProteus library 95.6 KB
LIB TEPSERIALMON.LIBProteus library 11.1 KB
LIB TEPSOIL.LIBProteus library 239.3 KB
Proteus Model Files/2 files · 1.3 MB
DLL TEPSERIALMON.DLLSimulation model 978 KB
DLL TEPSOIL.DLLSimulation model 361 KB
Proteus Simulation/4 files · 1.4 MB
DSN Soil-Moisture-ArduinoUnoV3.pdsprjProteus simulation 47.7 KB
HEX Soil_Moisture.hexCompiled HEX file 15.7 KB
DLL TEPSERIALMON.DLLSimulation model 978 KB
DLL TEPSOIL.DLLSimulation model 361 KB
TXT README.txtText file 28.9 KB

README

README.txt 364 lines
SOIL MOISTURE SENSOR (FC-28 / YL-69) LIBRARY FOR PROTEUS - V3.0
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/soil-moisture-sensor-library-for-proteus-v3-0.html
Report a bug or suggest a feature (our forum):
  https://www.theengineeringprojects.com/forum/category/soil-moisture-sensor-proteus-library
The demo uses our TEP Serial Monitor Advance (included) instead of Proteus's
Virtual Terminal - 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
SOIL-TEP-v3.0/
|-- Proteus Library Files/
|   |-- ArduinoV3TEP.IDX                              0.8 KB   its index -> LIBRARY folder
|   |-- ArduinoV3TEP.LIB                             95.6 KB   TEP Arduino UNO (demo) -> LIBRARY folder
|   |-- TEPSERIALMON.LIB                             11.1 KB   TEP Serial Monitor Advance -> LIBRARY folder
|   |-- TEPSOIL.LIB                                 239.3 KB   Soil Simple + Advance (2 devices) -> LIBRARY folder
|-- Proteus Model Files/
|   |-- TEPSERIALMON.DLL                            978.0 KB   Serial Monitor model -> MODELS folder
|   |-- TEPSOIL.DLL                                 361.0 KB   soil moisture model -> MODELS folder
|-- Proteus Simulation/
|   |-- Soil_Moisture.hex                            15.7 KB   both UNOs (demo sketch V3.0)
|   |-- Soil-Moisture-ArduinoUnoV3.pdsprj            47.7 KB   demo: UNO 1 + Soil Simple, UNO 2 + Soil Advance
|   |-- TEPSERIALMON.DLL                            978.0 KB   copy of the monitor model
|   |-- TEPSOIL.DLL                                 361.0 KB   copy of the model so the demo runs as is
|-- Arduino Code/
|   |-- Soil_Moisture/Soil_Moisture.ino               8.3 KB   the demo sketch (source of the .hex)
|-- README.txt                                      ~29.5 KB   this file
Total: 3.05 MB (unzipped). The C++ source code of the model is not included.

WHAT IS IT?
A simulation model of the popular resistive soil moisture sensor for Proteus 8:
the YL-69 fork probe and the blue FC-28 / YL-38 board with its LM393 comparator.
It is an ANALOG model - the board is real resistors inside Proteus's SPICE
simulator - so A0 is a real voltage your Arduino reads with analogRead(), and D0
is the comparator's open-collector output with the board's 10 k pull-up:
  * A0 = VCC x Rprobe / (Rprobe + 10 k): about 950 counts in bone-dry soil, 250
    with the probe in water, 1023 in air (an open probe), 7 counts per percent
    in between; it follows the supply (ratiometric) like the real board.
  * D0 goes LOW (and the green D0 LED lights) when the soil is wetter than the
    threshold set with the blue pot; HIGH (the pull-up) when it is drier.
You set the soil with buttons: DRY AIR (the probe pulled out), DRY SOIL 10 %,
SLIGHTLY MOIST 30 %, MOIST 50 %, WET 80 %, IN WATER 100 %; WATER THE PLANT (+20 %
in 2 s); the sun dries the soil (SLOW 0.5 % / s, FAST 2 % / s); the threshold pot
- / + 5 %. The demo sketch's map(adc, 950, 250, 0, 100) prints exactly the
moisture the panel shows.
The part looks like the real module: the blue board with the LM393, the blue
trimmer whose rotor turns with the threshold, the red PWR and green D0 LEDs and
the 4-pin header, and above it a PROBE CELL: a cut-through cup of soil with the
YL-69 fork pushed in. While the simulation runs the soil darkens as it gets
wetter, sparks run between the prongs (the current through the soil - more and
brighter in wet soil, none in air), the probe lifts out in DRY AIR, a watering
can drops water while you water, the sun shines while the soil dries, the cell
shows "MOISTURE 50 %   ADC 600", and the A0 LEVEL bar on the board shows the A0
voltage against the pot's reference (a red mark): blue segments = wetter than the
threshold, amber = drier. The A0 LEVEL bar is a TEP addition (not on the real
board); the PWR and D0 LEDs are the real board's two LEDs.

TWO DEVICES IN ONE LIBRARY (search "SOIL" in Pick Devices):
  Soil Simple   device SOILTEP     "Soil Moisture Sensor (FC-28 / YL-69) - Simple"
                On-Sheet Panel: the SOIL MOISTURE SCENE next to the sensor - a
                plant pot in cross-section (the soil's colour, the probe, a plant
                that droops when the soil is dry, the watering can, the sun),
                the "A0 vs POT" gauge (the comparator explained), the readouts
                MOISTURE / A0 / ADC / D0 and the buttons. The red X in the
                panel's header closes it, the PANEL: SHOWN / CLOSED button on
                the board opens it again.
  Soil Advance  device SOILADVTEP  "Soil Moisture Sensor (FC-28 / YL-69) - Advance"
                Pop-Up Panel: only the sensor on the schematic; at Run a TEP
                pop-up window "TEP Soil Moisture Advance" opens - the same look
                as the TEP Serial Monitor (move it by its header, resize it,
                minimise it). The tabs Soil and Test sit in the header; the gear
                and ? icons open Settings and Help; the palette icon switches
                the theme:
                  Soil      the same live scene, SET THE SOIL (a moisture slider
                            0 - 100 %, the six presets, Water the plant, the sun
                            Off / Slow / Fast, the pot - / + 5), WHAT THE BOARD
                            DOES - all measured: the supply, A0 (volts and % of
                            VCC), the UNO's ADC count, what the demo sketch
                            prints, D0 (level and volts), the LEDs, the probe
                            current, the pot's reference, the comparator - a
                            chart of the last 20 s (A0, the pot's reference,
                            the moisture, D0 LOW) and the PIN / EVENT LOG
                            (power, every D0 edge with the A0 voltage at that
                            moment, every scene change, the test tools)
                  Test      four tools measured on the running model: A0 sweep,
                            D0 threshold, Wet / dry, Calibrate (see THE TEST
                            TOOLS below)
                  Settings  theme (TEP Dark / Light), text size, open at Run,
                            window size - remembered for your Windows user
                  Help      Help & Support like the TEP Serial Monitor: report a
                            bug, suggest a feature, article, user guide,
                            updates, donate, website, forum; Copy diagnostics
                            for a bug report
                The OPEN PANEL button on the board opens the window again after
                you close it.
Both devices use the same model (TEPSOIL.DLL).

NEW IN V3.0
* Two devices: Soil Simple (the scene panel on the sheet, close / open) and Soil
  Advance (pop-up window with the scene, the controls, a chart, the pin / event
  log, four test tools, settings and help) - see above.
* Board: the blue FC-28 drawn clean and bold, portrait like the real 30 x 16 mm
  board: the LM393, the blue threshold trimmer (its rotor shows the pot), the PWR
  and D0 LEDs, the A0 LEVEL bar (TEP addition), a PANEL / OPEN PANEL button and a
  SIMPLE / ADVANCE badge; above it the animated probe cell (the cup of soil, the
  YL-69 fork, the current sparks, the watering can, the sun).
* Model: an analog SPICE model - A0 and D0 are real voltages in Proteus's
  simulator (the method verified with our flex sensor in Proteus 8.5); test-
  tool ramps (the moisture moves to a target at a set rate and stops exactly
  there, with the D0 edge at the crossing, also mid-glide); the panels' A0 / ADC / percentage are MEASURED at the A0 node
  and converted like the UNO in Proteus (ADC = A0 x 1024 / 5 V rounded to the
  nearest count - a real AVR truncates, at most 1 count lower) and the demo
  sketch (map 950 / 250) - the panel and the sketch print the same numbers;
  the model sets every moisture point at the centre of its count, so both
  read 950 / 880 / 600 / 250 exactly; a pin / event
  log; the Simulation Log names the device style and the DLL version.
* The demo: ONE project with two UNOs - UNO 1 with Soil Simple, UNO 2 with Soil
  Advance - each with the TEP Serial Monitor Advance instead of the Virtual
  Terminal (U3 = UNO 1, U4 = UNO 2, quick buttons) and a green "pump" LED on D13.
* The demo sketch (V3.0) prints a reading twice a second ("ADC: 600
  Moisture: 50 %   D0: LOW    Soil moisture OK") and answers the commands
  HELP, STATUS, READ, EVERY ms, CAL DRY, CAL WET, DRY n, WET n, PUMP D0, PUMP
  A0 n at once (it uses millis, not delay). It prints nothing periodically but
  the readings, and no line is longer than 80 characters.
* Sheet text is plain ASCII (Proteus draws schematic text with the ANSI code
  page). The C++ source code is not included.

TEST STATUS
V3.0: verified in Proteus 8.5 on 9 Oct 2026 (the demo project in this package:
two UNOs, both Serial Monitors and U2's pop-up open). What the run showed:
  * The project loads and starts cleanly. U4 prints "ADC: 600   Moisture: 50 %
    D0: LOW    Soil moisture OK"; the pop-up shows A0 2.930 V, ADC 600 and the
    LM393 line "A0 < POT -> D0 LOW".
  * D0 threshold (pot 40 %, 4 %/s): D0 LOW at 40.0 % = ADC 670 going wet, D0
    HIGH at 40.0 % = ADC 670 going dry, hysteresis 0.0 %, 1 / 1 edges.
  * Wet / dry (start 10 %, +40 %, 1 step, fast): watering 10 - 90 % in 3.20 s,
    D0 LOW 3.00 s after the watering starts (ADC 670), 659 readings. The event
    log: "D0 LOW at A0 3.271 V (ADC 670), moisture 40.0 %" and "D0 HIGH at A0
    4.297 V (ADC 880)".
  * A0 sweep: -7.00 ADC per %. Calibrate: air 1023, dry 950, wet 250, trip 670.
  * The sheet: WET 80 % / ADC 390; DRY AIR "PROBE IN AIR - A0 AT VCC, D0 HIGH",
    ADC 1023, the probe drawn pulled out of the soil. No outline around a
    button after another one is picked, every caption readable, the red X and
    the PANEL button work, nothing stale left on the board while it animates;
    the Test tiles show "-" before a run.
  * Speed: about 0.5 x real time (24 s of simulation in 46 s) with U2's pop-up
    on its Test page, U1's board animating and both Serial Monitors open.
  Also 1,623 automatic checks on a PC, 0 failed:
  62 on the model at the pin level (the A0 curve, the D0 rule for every
  threshold x moisture, exact crossing times while watering / drying / ramping,
  clamps, AIR, power, the threshold-equality rule, droop, status);
  297 on the complete Proteus model in a small SPICE solver (the measured A0 /
  ADC of every preset, D0 at the exact breakpoint, dcload() a pure function of
  time, power from a pin (ratiometric A0), GND high, properties, both devices,
  the red X / PANEL button, the pop-up made at Run, the board's live parts, every
  sheet text ASCII in every state, the four tools: the sweep 950 - 7 x %, D0 at
  exactly 20 / 40 / 60 / 80 %, the wet / dry steps with readings in every step,
  the calibration 1023 / 950 / 250 / 670, the scene put back after every tool,
  the article / forum links and all 8 Help cards, every board / panel label
  clear of what the model draws over it - with Proteus drawing boxes 8 thou
  bigger and text centred or hanging below its point; no rim of the start-up
  selection around a button once another one is picked; D0 switching DURING a
  glide - watering, drying, a test's ramp - with the timepoints Proteus takes;
  only the changed parts of the sheet drawn, the result identical to a whole
  redraw);
  43 with the REAL demo sketch on TWO UNOs against the complete model (every
  output line, the panel's numbers = the sketch's, the pump LED, every command,
  the Calibrate tool = CAL DRY / CAL WET, no line over 80 characters);
  1,221 on the rendered pop-up pages and boards (every page fits in TEP Dark and
  Light, at Large text and 150 % DPI; no table cell cut; every Test page uses
  its height; every tool's hint lines fit; every header state fits; before a
  tool has run its result tiles show "-" and its chart no result mark).
The analog method (an ISPICEMODEL DLL, the scheme of Labcenter's interactive
POT-HG) was verified in Proteus 8.5 on 8 Oct 2026 with our flex sensor (A0 read
by the UNO, the panel's clicks changing the reading).

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" (TEPSOIL.LIB with both devices,
   TEPSERIALMON.LIB and the TEP Arduino UNO V3 library ArduinoV3TEP.LIB / .IDX
   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 TEPSOIL.DLL and TEPSERIALMON.DLL from "Proteus Model Files" to the
   MODELS folder (...\Proteus 8 Professional\MODELS).
4. Delete TEPSOIL.IDX from the LIBRARY folder if there is one (Proteus makes a
   new index). Earlier versions of our soil moisture library use other file
   names - you can keep them.
5. Start Proteus. In Pick Devices (P) search "SOIL": you get the Simple and the
   Advance device (category Sensors > Moisture).

RUN THE DEMO
"Proteus Simulation\Soil-Moisture-ArduinoUnoV3.pdsprj" - keep the .hex file and
the two DLLs beside the project.
  UNO 1 (ARD1): Soil Simple (U1) + Serial Monitor U3, pump LED D1 on D13.
  UNO 2 (ARD2): Soil Advance (U2) + Serial Monitor U4, pump LED D2 on D13.
  Both run Soil_Moisture.hex. VCC of each sensor on a +5V terminal.
  1. Press Run. Both monitor windows open (9600 baud) and so does U2's pop-up.
     U3 and U4 show "Soil Moisture Sensor - The Engineering Projects", "Reading
     A0 and D0 every 0.5 s...", "Type HELP for the commands.", then twice a
     second "ADC: 600   Moisture: 50 %   D0: LOW    Soil moisture OK". The PWR
     LEDs and the D0 LEDs are lit, sparks run between the prongs, the cells show
     "MOISTURE 50 %   ADC 600".
  2. U1: click DRY SOIL on the panel: "ADC: 880   Moisture: 10 %   D0: HIGH
     Soil is DRY - water the plant!", the pump LED D1 lights, the D0 LED goes
     off, the plant droops. WATER THE PLANT twice: the readings fall 35 counts
     per line, D0 goes LOW when 40 % is passed and the pump LED goes off. FAST
     (the sun): the soil dries, D0 goes HIGH again below 40 %. DRY AIR: "ADC:
     1023   Moisture: 0 %" (the probe pulled out). - 5 % / + 5 % move the pot
     (the red mark on the A0 LEVEL bar and the gauge). Close the panel with its
     red X and open it with PANEL on the board.
  3. U3 / U4 quick buttons: U3 STATUS, READ, EVERY 2000, EVERY 500; U4 STATUS,
     CAL DRY, CAL WET, PUMP A0 40. To calibrate: set U2's slider to 0 % and click
     CAL DRY ("DRY_VALUE = 950 (the probe is in dry soil now)"), set it to 100 %
     and click CAL WET ("WET_VALUE = 250 ..."). PUMP A0 40: the sketch switches
     the pump below 40 % itself (type PUMP D0 to go back to the pot).
  4. U2 (Advance): Soil page - the slider, the presets, Water the plant, the sun,
     the pot; watch WHAT THE BOARD DOES, the chart and the event log. Test page
     (each tool puts your scene back when it ends):
       A0 sweep: Run test - 0 .. 100 % in 10 % steps and the probe in air: ADC
         950, 880, 810 ... 250 and 1023, the sketch's percentage exactly the
         moisture at every point, D0 LOW from 50 % up (the pot at 40 %).
       D0 threshold: "20 / 40 / 60 / 80 %" - D0 goes LOW rising and HIGH falling
         at exactly each pot setting (ADC 810 / 670 / 530 / 390), no hysteresis,
         one edge each way; D0 LOW 0.015 V, HIGH 5.00 V.
       Wet / dry: start 10 %, water +40 %, 3 steps - a flat lead-in, then
         880 -> 600 in 4 s (10 - 90 % 3.20 s, D0 LOW after 3.00 s), the sun
         back to 880 (16 s, D0 HIGH after 5.00 s), water again.
       Calibrate: air 1023, dry soil 950, water 250, the trip point 670 - "The
         demo sketch uses 950 / 250 - it matches this sensor."
  5. Close U2's window and open it again with OPEN PANEL on the board.
Closed a monitor window? Click OPEN MONITOR on the monitor part.

WIRING (the same in Proteus and on a real board)
Sensor VCC -> 5V, GND -> GND, A0 -> A0 (analog), D0 -> D2 (digital).
The pump LED + 220 ohm from D13 to GND on both UNOs (on a real board D13 is the
UNO's own LED; a real pump needs a relay or a transistor).
In the sketch: analogRead(A0), digitalRead(2), map(adc, 950, 250, 0, 100),
constrain(0, 100); Serial 9600.
Serial Monitor RXD <- Arduino D1 (TX), Serial Monitor TXD -> Arduino D0 (RX),
Serial Monitor GND -> ground. RXD2 is not needed: the sensor sends no serial data.
Pin order in Proteus: VCC GND D0 A0 (as printed on the board's header).
REAL HARDWARE:
 * Supply: 3.3 V - 5 V, about 5 - 15 mA with the LEDs. A0 is ratiometric: from
   3.3 V every reading scales by 3.3 / 5 - calibrate at the voltage you use.
 * Calibrate your own probe: read it in dry soil (DRY_VALUE) and in a glass of
   water (WET_VALUE); probes and soils differ (dry soil reads 850 - 1020, water
   300 - 500 in the tutorials).
 * Corrosion: a resistive probe powered all the time corrodes (electrolysis) in
   weeks to months - power it from a digital pin (e.g. D7: HIGH, wait 10 ms,
   read, LOW) only while reading. Capacitive sensors avoid it (analog only, a
   different module).
 * D0 has no hysteresis on the real board: near the threshold a noisy probe makes
   D0 chatter - debounce it in the sketch.

THE SOIL
The buttons, the pop-up's slider and the properties set the soil moisture (0 -
100 %) the probe sits in, or pull the probe out (AIR - the soil keeps its
moisture). WATER THE PLANT adds 20 % over 2 s (a second click while watering adds
2 s more); the sun dries the soil at 0.5 or 2 % per second down to 0 % (much
faster than a real pot, so a demo takes seconds, not days); the soil also dries
with the probe out or the power off. Standing water shows above 90 %.
While a test tool runs it owns the soil (the panel's buttons wait).

THE TEST TOOLS (Soil Advance, Test tab) - what they really measure
Every tool runs on the live model. A tool only moves the soil with the same
actions as the panel (set the moisture, pull the probe out, water, dry, turn the
pot) and reads the node voltages Proteus's SPICE solver computes at A0, D0 and
VCC at every simulation step - so every number is measured on the running
circuit, with the simulation clock. Each tool shows one "Good for:" line and one
line on how it measures.
  A0 sweep       Good for: seeing the whole A0 curve and checking that your map()
                 gives the right percentage. Sets 0 .. 100 % (11 or 21 points)
                 and the probe in AIR; at each point it waits for a flat A0 and
                 averages it: A0 (V), the UNO's ADC, what map(950, 250) and
                 constrain() print, D0; the slope (-7.00 counts per %), the
                 ADC at 0 % / 100 %, the largest sketch error, where D0 goes LOW;
                 a chart of ADC against moisture with the pot's reference.
  D0 threshold   Good for: finding where D0 switches, and checking your pot
                 setting before your sketch relies on D0. For the pot as set (or
                 20 / 40 / 60 / 80 %): settles 10 % below, ramps the moisture up
                 at 4 (or 1) % per second to 10 % above and back down: the
                 moisture and A0 where D0 went LOW (rising) and HIGH (falling),
                 the hysteresis, the edges per crossing (chatter), the D0 LOW /
                 HIGH levels, the pot's reference voltage; a chart of D0 against
                 the moisture.
  Wet / dry      Good for: seeing how fast A0 follows watering and drying, and
                 when D0 tells your sketch the pump state. Start 10 or 20 %, water
                 +20 / +40 / +60 % (the real 2 s waterings), the sun Fast 2 % / s
                 or Slow 0.5 % / s, 1 - 3 steps (water, dry back to the start,
                 water). Each step starts from a flat reading (a lead-in: at least
                 1 s, the last 0.5 s within 1 count) and lasts until A0 is flat
                 again; every reading of every step is kept: the ADC before and
                 after, the 10 - 90 % time, when D0 changed (and to what), the
                 settle time (within 2 counts), the rate, the number of readings;
                 a chart of A0, the moisture and D0 over the whole run.
  Calibrate      Good for: getting the DRY_VALUE and WET_VALUE for your sketch -
                 the two numbers every soil sketch needs. Holds the probe in air,
                 in bone-dry soil (0 %), in water (100 %) and at the pot's trip
                 point, 400 ms each, and averages A0 once it is flat: the ADC of
                 each, the lines to put in your sketch, whether the demo's 950 /
                 250 match, what map() then prints for a few readings.
  The tools refuse to start, with the reason, when the sensor has no power or
  another test runs; they stop (and put the scene back) when the power goes.

THE DEMO SKETCH ON THE SERIAL MONITOR (Soil_Moisture V3.0)
  HELP          the command list
  STATUS        DRY_VALUE, WET_VALUE, the reading interval, where the pump
                decision comes from, the last reading
  READ          one reading now
  EVERY ms      the reading interval (0 = pause)
  CAL DRY       the probe is in dry soil now: this reading becomes DRY_VALUE
  CAL WET       the probe is in water now: this reading becomes WET_VALUE
  DRY n, WET n  set them by hand (0 - 1023)
  PUMP D0       the pump (D13) follows D0 - the board's pot decides (default)
  PUMP A0 n     the pump runs below n % moisture - the sketch decides
Monitor quick buttons in the demo: U3 STATUS, READ, EVERY 2000, EVERY 500; U4
STATUS, CAL DRY, CAL WET, PUMP A0 40.
Every line the demo prints is at most 80 characters (the TEP Serial Monitor's
Simple interface shows about 80).

EXPECTED MONITOR OUTPUT (U3 and U4 at the start)
  Soil Moisture Sensor - The Engineering Projects
  Reading A0 and D0 every 0.5 s...
  Type HELP for the commands.
  ADC: 600   Moisture: 50 %   D0: LOW    Soil moisture OK
  ADC: 600   Moisture: 50 %   D0: LOW    Soil moisture OK
Then DRY SOIL, IN WATER, DRY AIR on U1, and STATUS on U3:
  ADC: 880   Moisture: 10 %   D0: HIGH   Soil is DRY - water the plant!
  ADC: 250   Moisture: 100 %   D0: LOW    Soil moisture OK
  ADC: 1023   Moisture: 0 %   D0: HIGH   Soil is DRY - water the plant!
  Status: DRY_VALUE 950, WET_VALUE 250, every 500 ms
    pump from D0 (the pot), last ADC 1023 = 0 %, D0 HIGH, pump ON
Without a supply the sensor gives about 0 V on A0 and D0: "ADC: 0   Moisture:
100 %   D0: LOW    Soil moisture OK" - check VCC / GND (the PWR LED must be lit).

PROPERTIES (double-click the sensor > Edit Properties)
  MOISTURE    soil moisture at the start of a run: 0 - 100 (percent) or AIR
              (the probe pulled out), default 50
  THRESHOLD   the D0 threshold pot as a moisture percent, 5 - 95, default 40
              (= ADC 670 = 3.27 V at 5 V)
  DRYING      OFF, SLOW or FAST at the start, default OFF
  PANEL       Simple only: the scene panel at the start, OPEN or CLOSED
  REDRAW      not listed - add it under Other Properties only if a part of the
              board or panel ever stays stale: REDRAW=FULL draws the whole
              sheet on every frame (slower; normally only what changed is drawn)
Every run starts again from the properties. A bad value is logged and the
default used. The panel style is chosen by the device (Simple / Advance), not by
a property. The Advance window settings (theme, text size, open at Run, size)
are on its Settings page. The demo's Serial Monitors: BAUD 9600, THEME TEPDARK,
AUTOOPEN YES, QUICK1-4 as above (see the Serial Monitor's article for all its
properties).

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
…
Advertisement

Development1 release

  1. V3.0Soil Moisture Sensor Library for Proteus V3.0this page

    V3.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 soil-moisture-sensor-tep-v3-0-2f326ab6cf85479a8545453f2322771d.zip and choose Extract All (or open it with 7-Zip or WinRAR) into a folder you can find again. Keep its folder structure (SOIL-TEP-v3.0) as it is.

  2. 2

    Copy the library files into Proteus

    Move ArduinoV3TEP.LIB, TEPSERIALMON.LIB and TEPSOIL.LIB and ArduinoV3TEP.IDX 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 TEPSERIALMON.DLL and TEPSOIL.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_Moisture.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_Moisture.hex and run the simulation. For real hardware, flash the same file with your programmer.

  7. 7

    Open the example simulation

    Open Soil-Moisture-ArduinoUnoV3.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

    Soil Moisture Sensor Library for Proteus V3.0 (FC-28 + 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 Soil Moisture Sensor Library for Proteus V3.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?

Soil Moisture Sensor Library for Proteus V3.0 comes as a ZIP archive of 12 files (1.4 MB, 3.1 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 12 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, 8518c5fa7182cb34036c6a2c93f51a85d195454c7676a73b0c49a615c6eacf70. In PowerShell run Get-FileHash "soil-moisture-sensor-tep-v3-0-2f326ab6cf85479a8545453f2322771d.zip"; on macOS or Linux run shasum -a 256 "soil-moisture-sensor-tep-v3-0-2f326ab6cf85479a8545453f2322771d.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 · soil-moisture-sensor-tep-v3-0-2f326ab6cf85479a8545453f2322771d.zip
Rating
Your download will be ready shortly
Preparing your download…

Members skip the wait. Log in or join TEP.

  • 43Total downloads
  • 4%Popularity
  • ProteusCategory
  • 0Comments
  • ssyedzainnasirUploaded by
  • 8 Oct 2026Uploaded at
Last 14 days38 downloads
SHA-256 8518c5fa7182cb34036c6a2c93f51a85d195454c7676a73b0c49a615c6eacf70
DocumentationSoil Moisture Sensor Library for Proteus V3.0 (FC-28 + 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.