TEP DOWNLOAD CENTER

Project Files of Water Sensor Library for Proteus V2.0 (Water Level Sensor + Arduino)

Libraries Code Projects Simulation
tep://download-terminal water-sensor-tep-v2-0-0ab0f7590b9c449d93244a4c909d096a.zip ZIP archiveV2.0Verified46 downloadsFree
Water Sensor Library for Proteus V2.0: two Arduino UNOs with red water sensors, the Water Sensor Advance pop-up Tank page at 20 mm reading ADC 495 Medium, and the TEP Serial Monitor in its Simple interface
Proteus library · File 1 of 1

Water Sensor Library for Proteus V2.0

Water Sensor Library for Proteus V2.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

Water Sensor Library for Proteus V2.0 is the download package that goes with our tutorial Water Sensor Library for Proteus V2.0 (Water Level Sensor + 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

Water-Sensor-Library-for-Proteus-v2.0.zip with Water Sensor Simple and Advance (TEPWATERLEVEL.LIB and TEPWATERLEVEL.DLL), the TEP Serial Monitor and Arduino UNO libraries for Proteus, the two-UNO water tank level simulation with its HEX file, the demo sketch and a README.

This is version 2.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
  • TEPWATERLEVEL.LIB – Proteus library, 226.5 KB
  • ArduinoV3TEP.IDX – Library index, 830 B
  • TEPSERIALMON.DLL – Simulation model, 978 KB
  • TEPWATERLEVEL.DLL – Simulation model, 398 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 TEPWATERLEVEL.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 TEPWATERLEVEL.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 Water_Tank_Level.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 Water_Tank_Level.hex; on hardware, flash the same file.
  • Step 7: Open Water-Level-Sensor-ArduinoUnoV3.pdsprj in Proteus and press Play.

Read the detailed guide

This page is for the files. The full tutorial, Water Sensor Library for Proteus V2.0 (Water Level Sensor + 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 Water Sensor Library for Proteus V2.0 (Water Level Sensor + Arduino)

File Structure

water-sensor-tep-v2-0-0ab0f7590b9c449d93244a4c909d096a.zip12 files · 5 folders · 3.1 MB unpacked
WATERLEVEL-TEP-v2.0/12 files · 3.1 MB
Arduino Code/1 file · 8.4 KB
Water_Tank_Level/1 file · 8.4 KB
INO Water_Tank_Level.inoArduino sketch 8.4 KB
Proteus Library Files/4 files · 334 KB
IDX ArduinoV3TEP.IDXLibrary index 830 B
LIB ArduinoV3TEP.LIBProteus library 95.6 KB
LIB TEPSERIALMON.LIBProteus library 11.1 KB
LIB TEPWATERLEVEL.LIBProteus library 226.5 KB
Proteus Model Files/2 files · 1.3 MB
DLL TEPSERIALMON.DLLSimulation model 978 KB
DLL TEPWATERLEVEL.DLLSimulation model 398 KB
Proteus Simulation/4 files · 1.4 MB
DLL TEPSERIALMON.DLLSimulation model 978 KB
DLL TEPWATERLEVEL.DLLSimulation model 398 KB
DSN Water-Level-Sensor-ArduinoUnoV3.pdsprjProteus simulation 45.7 KB
HEX Water_Tank_Level.hexCompiled HEX file 15.6 KB
TXT README.txtText file 31.3 KB

README

README.txt 364 lines
WATER SENSOR LIBRARY FOR PROTEUS - V2.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/water-sensor-library-for-proteus-v2-0.html
Report a bug or suggest a feature (our forum):
  https://www.theengineeringprojects.com/forum/category/water-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
WATERLEVEL-TEP-v2.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
|   |-- TEPWATERLEVEL.LIB                           226.5 KB   Water Simple + Advance (2 devices) -> LIBRARY folder
|-- Proteus Model Files/
|   |-- TEPSERIALMON.DLL                            978.0 KB   Serial Monitor model -> MODELS folder
|   |-- TEPWATERLEVEL.DLL                           398.0 KB   water sensor model -> MODELS folder
|-- Proteus Simulation/
|   |-- TEPSERIALMON.DLL                            978.0 KB   copy of the monitor model
|   |-- TEPWATERLEVEL.DLL                           398.0 KB   copy of the model so the demo runs as is
|   |-- Water_Tank_Level.hex                         15.6 KB   both UNOs (demo sketch V2.0)
|   |-- Water-Level-Sensor-ArduinoUnoV3.pdsprj       45.7 KB   demo: UNO 1 + Water Simple, UNO 2 + Water Advance
|-- Arduino Code/
|   |-- Water_Tank_Level/Water_Tank_Level.ino         8.4 KB   the demo sketch (source of the .hex)
|-- README.txt                                      ~32.0 KB   this file
Total: 3.11 MB (unzipped). The C++ source code of the model is not included.

WHAT IS IT?
A simulation model of the popular red "Water Sensor" (water level / rain drop
board, 62 x 20 mm, pins S + -) for Proteus 8. It is an ANALOG model - the board
is real parts inside Proteus's SPICE simulator - so S is a real voltage your
Arduino reads with analogRead():
  * Ten interleaved copper traces: the power traces (+) and the sense traces.
    The water between them is a resistor that drives the base of the S8050
    transistor; the transistor is an emitter follower with 100 ohm to ground,
    so S rises with the depth of water on the traces - NOT linearly: the first
    millimetres change it a lot, the last ones only a little.
  * The board draws about 27 - 31 mA while powered (S into 100 ohm + the PWR
    LED): power it from a digital pin ONLY while reading - the demo does (D7).
    The pin sags under that load (in Proteus the UNO's D7 gives 4.46 V at 20
    mm, about 5 V behind 20 ohm; a real ATmega328P sags about the same).
  * Tap water, + from D7 (the UNO's ADC): dry 0, 10 mm 376, 20 mm 495, 30 mm
    553, 40 mm (the traces full) 588. On a stiff 5 V supply instead: 417, 565,
    642, 688. Distilled water hardly conducts (20 mm: 28); salty water reaches
    the top at once (20 mm: 708).
You set the tank with buttons: EMPTY, 10 / 20 / 30 MM, FULL 40 MM, OVERFLOW;
FILL and DRAIN (the tap and the drain move the water slowly, FILLRATE mm per
second), STOP, - 1 MM / + 1 MM; the water TAP / DISTILLED / SALTY; WAVES ON /
OFF (+-1.2 mm ripples at the sensor).
The part looks like the real module: the long red board with its copper comb,
the S8050, the three resistors (101 101 105), the red PWR LED and the 3-pin
header S + -, and above it a TANK window: a glass tank with the sensor dipped in
tip down, a depth ruler, the tap and the drain. While the simulation runs the
wet part of the comb turns light blue on the board too, the water fills and
drains, ripples run, the stream pours, and the window shows "20.0 mm - ADC 495 -
MEDIUM". TEP additions (not on the real board): the amber CORR LED (it lights
when + stays powered while the traces are wet - they corrode), the S LEVEL bar
(S in volts, coloured by the demo sketch's band), the PANEL / OPEN PANEL button
and the SIMPLE / ADVANCE badge. The PWR LED is the real board's only LED.
FILL / DRAIN / WAVES are effects on top of the BASE level you set: the panels
show "(base) / now" - the slider and the buttons keep the base, an amber marker
shows the water now.

TWO DEVICES IN ONE LIBRARY (search "WATER" in Pick Devices):
  Water Simple   device WATERLEVELTEP     "Water Sensor (TEP) - Simple"
                 On-Sheet Panel: the WATER LEVEL SCENE next to the sensor - the
                 tank in cross-section (the sensor in it, the ruler with the
                 level and base markers, the tap, the drain, the water tag),
                 the chart "S OUTPUT vs DEPTH" for tap, distilled and salty
                 water with the reading as a dot (the curves follow the
                 supply: "5 V PIN, 20 OHM" with + on the UNO's pin), the
                 readouts DEPTH / S / ADC /
                 LEVEL / VCC / POWER and the buttons. The red X in the panel's
                 header closes it, the PANEL: SHOWN / CLOSED button on the board
                 opens it again.
  Water Advance  device WATERLEVELADVTEP  "Water Sensor (TEP) - Advance"
                 Pop-Up Panel: only the sensor on the schematic; at Run a TEP
                 pop-up window "TEP Water Sensor Advance" opens - the same look
                 as the TEP Serial Monitor (move it by its header, resize it,
                 minimise it). The tabs Tank and Test sit in the header; the
                 gear and ? icons open Settings and Help; the palette icon
                 switches the theme:
                   Tank      the same live scene, SET THE TANK (a level slider
                             0 - 47.5 mm, the six presets, Fill / Drain / Stop,
                             - / + 1 mm, the water, the waves), WHAT THE BOARD
                             DOES (MEASURED) - the supply, how + is powered
                             (PULSED n % with the pulse length, or ALWAYS ON),
                             S (volts and % of VCC), the UNO's ADC, what the
                             demo sketch prints, the board current, the current
                             through the water, the wet traces, the LEDs - a
                             chart of the last 20 s (each reading, the water
                             level, when + was powered) and the PIN / EVENT LOG
                             (every + pulse = one reading with S and its ADC,
                             every scene change, the test tools)
                   Test      four tools measured on the running model: Depth
                             sweep, Pulsed power, Fill / drain, Corrosion check
                             (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 (TEPWATERLEVEL.DLL).

NEW IN V2.0
* Two devices: Water Simple (the tank scene panel on the sheet, close / open)
  and Water 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 red water sensor drawn clean and bold, portrait like the real
  board: the copper comb (it shows the wet part live), the S8050, the
  resistors, the PWR LED, the TEP CORR LED and S LEVEL bar, a PANEL / OPEN
  PANEL button and a SIMPLE / ADVANCE badge; above it the animated TANK window.
* Model (the analog SPICE model of the first build: the S8050 emitter follower,
  unchanged): readings held while + is pulsed (the panels show the last
  powered reading and "PULSED 1 %" instead of NO POWER between the demo's
  10 ms pulses); the tap and the drain glide the water smoothly and S follows at
  every simulation step; the "(base) / now" effect; the panels' S / ADC are
  MEASURED at the S node and converted like the UNO in Proteus (ADC = S x
  1024 / 5 V rounded to the nearest count - a real AVR truncates, at most 1
  count lower) and the demo sketch's bands, so the
  panel and the sketch print the same numbers; the chart's curves follow the
  supply the sensor really gets (a sagging pin too), so the reading's dot sits
  on its curve; a pin / event log; the Simulation Log names the device style
  and the DLL version.
* The demo's level bands come from the curve with + on the UNO's pin (Empty <
  100, Low < 400, Medium < 540, else High; the D13 LED from 570): 10 mm Low,
  20 mm Medium, 30 and 40 mm High, the LED from about 35 mm.
* The demo: ONE project with two UNOs - UNO 1 with Water Simple, UNO 2 with
  Water Advance - each with the TEP Serial Monitor Advance instead of the
  Virtual Terminal (U3 = UNO 1, U4 = UNO 2, quick buttons) and a green "nearly
  full" LED on D13. + of each sensor on its UNO's D7 (no +5V terminal).
* The demo sketch (V2.0) keeps every line of the earlier one ("ADC: 495
  Level: Medium" once a second, + from D7 only while reading) and adds the
  commands HELP, STATUS, READ, EVERY ms, POWER PULSED, POWER ON, WAIT ms, BANDS
  a b c, FULL n (millis instead of delay, so the commands answer at once). 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
V2.0: verified in Proteus 8.5 on 9 Oct 2026 (this package's model, the demo
  project, both devices, all four tools):
  * Start: U3 / U4 print "ADC: 495   Level: Medium" every second; the panel
    and the pop-up show the same (S 2.416 V, supply 4.46 V held, 27.1 mA,
    PULSED 1 % (10.1 ms)); the chart's title "S OUTPUT vs DEPTH (5 V PIN, 20
    OHM)" with the reading's dot on the TAP curve.
  * FULL 40 MM: "ADC: 588   Level: High" on the panel and the monitor, the D13
    LED lights; STATUS: "bands 100 / 400 / 540, LED from 570, last ADC 588 =
    High"; DRAIN to empty: "SENSOR DRY - S ABOUT 0 V (ADC ABOUT 0)".
  * Depth sweep (27 points in 26.4 s): tap 0 253 376 448 495 528 553 573 588
    (10 / 20 / 40 mm = 376 / 495 / 588, Low / Medium / High as expected),
    distilled up to 56, salty 663 ... 716; the sketch's bands start at 5 / 15
    / 30 mm, the LED at 35 mm. Pulsed power: 10.1 ms every 1000 ms, duty 1.01
    %, settled at once, 4.46 V, 27.1 mA, ADC 495. Fill / drain: 376 -> 553,
    10 - 90 % in 7.58 s. Corrosion check: 37.4 uC in 30 s, 0.108 C a day, 99 x
    less than always on, 123 uA at 1.36 V. Every tile shows "-" before a run.
  * The sheet panel: captions readable, no rim around the buttons, the red X
    and the board's PANEL button close and open it. Speed: about 0.58 x real
    time with the pop-up open and both monitors.
  The pin sag is real: the UNO's D7 gives about 4.46 V under the sensor (5 V
  behind about 20 ohm; a real ATmega328P sags about the same), so the demo's
  bands are set for + on the D7 pin. On a stiff 5 V supply the sensor reads
  higher (417 / 565 / 688) - set the bands for your wiring (BANDS, FULL).
  2,403 automatic checks on a PC, 0 failed (the PC model reproduces the Proteus
  run point for point):
  116 on the model at the pin level (the S curve for tap / distilled / salty,
  the S8050 follower, the supply from a pin, held readings between pulses, the
  pulse / always-on rule, fill / drain / waves, overflow, the bands on the
  pin-powered curve);
  373 on the complete Proteus model in a small SPICE solver (the measured S /
  ADC of every preset and water, dcload() a pure function of time, S moving at
  every step of a glide with no extra breakpoints, + from a pulsed pin, 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
  "(base) / now" effect, the event log, the four tools: the sweep of all three
  waters, the pulse length / period / duty / settle time, the fill / drain steps
  with readings in every step, the corrosion charge, 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; the sheet
  redrawn only where something changed; the chart's curves for the supply the
  sensor gets);
  41 with the REAL demo sketch on TWO UNOs (+ on a pin that sags like
  Proteus's) against the complete model (every output line, the panel's
  numbers = the sketch's, the Proteus run's sweep point for point, FULL = High
  with the D13 LED, every command, POWER ON lights the CORR LED, no line over
  80 characters);
  1,873 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 and the Corrosion table's first row show "-").
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" (TEPWATERLEVEL.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 TEPWATERLEVEL.DLL and TEPSERIALMON.DLL from "Proteus Model Files" to
   the MODELS folder (...\Proteus 8 Professional\MODELS).
4. Delete TEPWATERLEVEL.IDX from the LIBRARY folder if there is one (Proteus
   makes a new index). Earlier versions of our water sensor library may use
   other file names - you can keep them.
5. Start Proteus. In Pick Devices (P) search "WATER": you get the Simple and
   the Advance device (category Sensors > Liquid Sensors).

RUN THE DEMO
"Proteus Simulation\Water-Level-Sensor-ArduinoUnoV3.pdsprj" - keep the .hex file
and the two DLLs beside the project.
  UNO 1 (ARD1): Water Simple (U1) + Serial Monitor U3, LED D1 on D13.
  UNO 2 (ARD2): Water Advance (U2) + Serial Monitor U4, LED D2 on D13.
  Both run Water_Tank_Level.hex. + of each sensor on its UNO's D7, S on A0,
  - on ground.
  1. Press Run. Both monitor windows open (9600 baud) and so does U2's pop-up.
     U3 and U4 show "Water Tank Level Indicator - TEP Water Level Sensor",
     "Sensor powered from D7 only while reading (less corrosion)", "Water Sensor
     Library for Proteus V2.0 - type HELP for the commands", then once a second
     "ADC: 495   Level: Medium". Each reading is a 10 ms pulse of + : the PWR
     LEDs blink, the POWER readout says "PULSED 1 % (10.1 ms)", VCC 4.46 V (the
     D7 pin sags under the sensor), the tank windows show "20.0 mm - ADC 495 -
     MEDIUM", the chart's title "S OUTPUT vs DEPTH (5 V PIN, 20 OHM)".
  2. U1: click the panel's buttons: EMPTY "ADC: 0   Level: Empty", 10 MM "ADC:
     376   Level: Low", 30 MM "ADC: 553   Level: High", FULL 40 MM "ADC: 588
     Level: High" and the D13 LED D1 lights (from 570, about 35 mm). FILL /
     DRAIN: the water glides at 1 mm/s and the readings follow, STOP holds it.
     DISTILLED at 20 mm: "ADC: 28   Level: Empty"; SALTY: "ADC: 708   Level:
     High". WAVES ON: the reading wanders a few counts. Close the panel with its
     red X and open it with PANEL on the board.
  3. U3 / U4 quick buttons: U3 STATUS, READ, POWER ON, POWER PULSED; U4
     STATUS, EVERY 200, EVERY 1000, WAIT 0. POWER ON keeps D7 HIGH: after 0.3 s
     the POWER readout says ALWAYS ON, the amber CORR LED lights (the traces are
     wet) and electrolysis bubbles rise in the tank; POWER PULSED goes back.
  4. U2 (Advance): Tank page - the slider, the presets, Fill / Drain, the water,
     the waves; watch WHAT THE BOARD DOES, the chart and the event log (every
     pulse "+ pulse 10.1 ms: S 2.416 V = ADC 495 (Medium), VCC 4.46 V"). Test
     page (each tool puts your scene back when it ends):
       Depth sweep: Run test - 0 .. 40 mm in 5 mm steps, one + pulse per point
         (27 points in about 26 s): tap 0, 253, 376, 448, 495, 528, 553, 573,
         588; distilled 0 .. 56; salty 0, 663, 692 ... 716; 10 / 20 / 40 mm =
         376 / 495 / 588, 50.6 / 3.0 counts per mm at the bottom / top; the
         sketch's Low / Medium / High / LED from 5 / 15 / 30 / 35 mm.
       Pulsed power: 5 pulses - 10.1 ms every 1000 ms, duty 1.01 %, S settled
         at once (the sketch's 10 ms wait is plenty), 4.46 V and 27.1 mA in the
         pulse, ADC 495 in every pulse.
       Fill / drain: start 10 mm, +20 mm at 2 mm/s, 3 steps - a flat lead-in,
         then 376 -> 553 (10 - 90 % 7.58 s), back down, up again; about 12.5
         counts per mm at the start, 4.8 near the end; every reading of every
         step (12 per step at one reading a second).
       Corrosion check: 30 s - 30 pulses, + on 1.01 % of the time, 123 uA
         through the water at 1.36 V, 37.4 uC in the window = 0.108 C a day,
         against 10.7 C a day powered all the time: 99 x less (copper 0.035 mg
         a day instead of 3.5 mg).
     (These numbers are with Proteus's UNO pin, about 5 V behind 20 ohm. A
     stiffer supply reads higher: 10 / 20 / 40 mm = 417 / 565 / 688 at 5 V.)
  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 + -> D7 (a digital pin, HIGH only while reading), - -> GND, S -> A0.
The "nearly full" LED + 220 ohm from D13 to GND on both UNOs (on a real board
D13 is the UNO's own LED).
In the sketch: digitalWrite(7, HIGH), delay(10), analogRead(A0),
digitalWrite(7, LOW); 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: S + - (as printed on the board's header).
REAL HARDWARE:
 * Supply: 3.3 V - 5 V, about 20 - 35 mA while powered (S into 100 ohm and the
   PWR LED). An AVR pin sags under that load (VOH about 4.2 - 4.5 V at 20 - 30
   mA), so a pin-powered sensor reads lower than one on the 5 V rail. The
   demo's bands are set for + on a pin; set them for your own sensor, water
   and wiring (BANDS a b c, FULL n). The model does the same: drive + from a
   weak source and the panel's VCC, ADC and chart follow it.
 * Corrosion: water + DC on bare copper = electrolysis; a sensor powered all
   the time is eaten away in days to weeks. Power + from a pin only while
   reading (the demo's 10 ms once a second = 1 % of the time).
 * The reading depends on the water's conductivity (minerals, salt,
   temperature): calibrate the bands in your own water. Distilled water reads
   almost nothing.
 * Keep the electronics (the top of the board) dry - the traces may get wet,
   the transistor and the header may not.
 * Proteus's AVR rounds the ADC to the nearest count; a real ATmega328P
   truncates (one count lower at most).

THE TANK
The buttons, the pop-up's slider and the properties set the BASE water level
(0 - 47.5 mm; the traces are 40 mm long, above that the tank OVERFLOWS onto the
electronics). FILL and DRAIN move the water at FILLRATE mm per second until the
rim or the floor, or until STOP; WAVES add +-1.2 mm ripples. These effects keep
the base: "(base) / now" in the panels, an amber marker for the water now.
While a test tool runs it owns the tank (the panel's buttons wait).

THE TEST TOOLS (Water Advance, Test tab) - what they really measure
Every tool runs on the live model. A tool only moves the tank with the same
actions as the panel (set the level, fill, drain, change the water) and reads
the node voltages Proteus's SPICE solver computes at S and + at every
simulation step - so every number is measured on the running circuit, with the
simulation clock. With + pulsed by the sketch a reading is taken in each pulse
(like the sketch's analogRead); with a steady supply every 20 ms. Each tool
shows one "Good for:" line and one line on how it measures.
  Depth sweep      Good for: setting your sketch's level bands - what each depth
                   reads in tap, distilled and salty water. Sets 0 .. 40 mm in
                   5 or 2.5 mm steps (this water, or all three), waits for a
                   powered reading at each and averages it: S (V), the UNO's
                   ADC, the band the demo prints; the ADC at 10 / 20 / 40 mm,
                   what the first 10 mm give (% of full), counts per mm at the
                   bottom and the top, where the bands change; a chart of ADC
                   against depth for each water.
  Pulsed power     Good for: checking that your sketch powers the sensor only
                   while reading, and that its wait is long enough. Watches +
                   for 3, 5 or 10 pulses: each pulse's length, the period, the
                   duty, the supply in the pulse, when S settles (within 1
                   count), the current, what analogRead gets; a scope trace of
                   + and S around one pulse. Says "ALWAYS ON" when + never goes
                   low.
  Fill / drain     Good for: seeing how the reading follows a filling and
                   draining tank - fast at first, slow near full. Start 5 or 10
                   mm, step +10 / +20 / +30 mm at 1, 2 or 5 mm/s, 1 - 3 steps
                   (fill, drain back, fill). Each step starts from a flat
                   reading (a lead-in) and lasts until the water stops and the
                   reading is flat; every reading of every step is kept: the
                   ADC before and after, the 10 - 90 % time, counts per mm at
                   the start and the end, the number of readings; a chart of
                   the readings and the level over the whole run.
  Corrosion check  Good for: seeing why the sensor should be powered only while
                   reading - the charge through the water, measured. Integrates
                   the water current (from the measured S) while + is powered
                   over 10, 30 or 60 s: the pulses, the duty, the current and
                   voltage in the water, the charge, per day (the window scaled
                   to 24 h), the same powered all the time, how many times less,
                   and the copper that charge could dissolve (Faraday, Cu2+).
  The tools refuse to start, with the reason, when the sensor has no power (no
  pulse for 12 s) or another test runs; they stop (and put the scene back) when
  the power goes away for 15 s.

THE DEMO SKETCH ON THE SERIAL MONITOR (Water_Tank_Level V2.0)
  HELP          the command list
  STATUS        the interval, how + is powered, the bands, the LED limit, the
                last reading
  READ          one reading now
  EVERY ms      the reading interval (0 = pause)
  POWER PULSED  + (D7) HIGH only while reading - the default
  POWER ON      + (D7) HIGH all the time (the CORR LED shows why not)
  WAIT ms       the wait after + goes HIGH before analogRead (0 - 100, defau
…
Advertisement

Development1 release

  1. V2.0Water Sensor Library for Proteus V2.0this page

    V2.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 water-sensor-tep-v2-0-0ab0f7590b9c449d93244a4c909d096a.zip and choose Extract All (or open it with 7-Zip or WinRAR) into a folder you can find again. Keep its folder structure (WATERLEVEL-TEP-v2.0) as it is.

  2. 2

    Copy the library files into Proteus

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

  7. 7

    Open the example simulation

    Open Water-Level-Sensor-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

    Water Sensor Library for Proteus V2.0 (Water Level Sensor + 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 Run the HEX file in the Uno Test Bench, in your browser

FAQs9 questionsContact TEP

How do I download Water Sensor Library for Proteus V2.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?

Water Sensor Library for Proteus V2.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, 366d6fe063cdeb9a7ae233b8936ee46f8bf71e55d2dd52f1996275e884329a1c. In PowerShell run Get-FileHash "water-sensor-tep-v2-0-0ab0f7590b9c449d93244a4c909d096a.zip"; on macOS or Linux run shasum -a 256 "water-sensor-tep-v2-0-0ab0f7590b9c449d93244a4c909d096a.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 · water-sensor-tep-v2-0-0ab0f7590b9c449d93244a4c909d096a.zip
Rating
Your download will be ready shortly
Preparing your download…

Members skip the wait. Log in or join TEP.

  • 46Total downloads
  • 4%Popularity
  • ProteusCategory
  • 0Comments
  • ssyedzainnasirUploaded by
  • 10 Oct 2026Uploaded at
Last 14 days37 downloads
SHA-256 366d6fe063cdeb9a7ae233b8936ee46f8bf71e55d2dd52f1996275e884329a1c
DocumentationWater Sensor Library for Proteus V2.0 (Water Level Sensor + Arduino)
Advertisement

Comments

0

Join the conversation

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