Project Files of IoT Water Quality Monitoring System with ESP32 - Proteus Simulation
esp32-water-quality-tep-v1-0-f448dead29424a2b84c1a53c13898a61.zip

IoT Water Quality Monitoring System with ESP32 - Proteus Simulation V1.0
IoT Water Quality Monitoring System with ESP32 - Proteus Simulation V1.0 comes as a ZIP archive of 36 files (5.6 MB, 12.6 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
IoT-Water-Quality-Monitoring-System-ESP32-Proteus-Simulation-v1.0.zip: the complete Proteus simulation project (ESP32 DevKit V1, TDS meter, turbidity sensor, DS18B20 probe, relay, 12 V water valve, OLED, LEDs, the Laptop and Mobile WiFi Monitors), the ESP32 sketch and its HEX file, every LIB and DLL the simulation needs, and a README.
File Structure
11.2 KB9.7 KB88 KB36.6 KB39.5 KB21.8 KB13.1 KB112.4 KB490.4 KB306.9 KB63.4 KB68.2 KB18.4 KB286.5 KB305 KB289.5 KB2.9 MB342.5 KB330 KB311 KB314.5 KB322 KB281 KB40.7 KB111.5 KB286.5 KB305 KB289.5 KB2.9 MB342.5 KB330 KB311 KB314.5 KB322 KB281 KB15.4 KBGallery12 images from the tutorialOpen the tutorial
The circuit, the board and the results as they appear in IoT Water Quality Monitoring System with ESP32 - Proteus Simulation. Open an image for its full size.












README
===============================================================================================================
IoT Water Quality Monitoring System with ESP32 - Proteus Simulation Project V1.0
The Engineering Projects - www.TheEngineeringProjects.com
===============================================================================================================
IMPORTANT LINKS
The project tutorial (circuit, code, simulation results):
https://www.theengineeringprojects.com/2026/11/iot-water-quality-monitoring-system-esp32-proteus-simulation.html
The libraries this project is built from (each post has its own full download and tutorial):
ESP32 DevKit V1 board:
https://www.theengineeringprojects.com/2026/10/esp32-devkit-v1-library-for-proteus-v2-0.html
TDS meter:
https://www.theengineeringprojects.com/2026/10/tds-meter-library-for-proteus-v1-0.html
Turbidity sensor:
https://www.theengineeringprojects.com/2026/10/turbidity-sensor-library-for-proteus-v1-0.html
DS18B20 temperature sensor and waterproof probe:
https://www.theengineeringprojects.com/2026/10/ds18b20-library-for-proteus-v1-0.html
Relay module:
https://www.theengineeringprojects.com/2026/10/relay-module-library-for-proteus-v1-0.html
12V solenoid water valve:
https://www.theengineeringprojects.com/2026/11/12v-solenoid-water-valve-library-for-proteus-v1-0.html
1N4007 diode:
https://www.theengineeringprojects.com/2026/11/1n4007-diode-library-for-proteus.html
OLED SSD1306 (128x64):
https://www.theengineeringprojects.com/2026/10/oled-ssd1306-library-for-proteus-v1-0.html
5mm LED:
https://www.theengineeringprojects.com/2026/11/5mm-led-library-for-proteus.html
Resistor:
https://www.theengineeringprojects.com/2026/11/resistor-library-for-proteus.html
Laptop WiFi Monitor:
https://www.theengineeringprojects.com/2026/10/laptop-wifi-monitor-library-for-proteus.html
Mobile WiFi Monitor:
https://www.theengineeringprojects.com/2026/10/mobile-wifi-monitor-library-for-proteus.html
Support our free work: https://www.theengineeringprojects.com/donate
FILE STRUCTURE
ESP32-Water-Quality-TEP-v1.0/
|-- Proteus Library Files/
| |-- TEP1N4007.LIB 9.7 KB a part of the project -> LIBRARY folder
| |-- TEPDS18B20.LIB 88.0 KB a part of the project -> LIBRARY folder
| |-- TEPESP32V1.LIB 36.6 KB a part of the project -> LIBRARY folder
| |-- TEPLAPTOP.LIB 39.5 KB a part of the project -> LIBRARY folder
| |-- TEPLED5MM.LIB 21.8 KB a part of the project -> LIBRARY folder
| |-- TEPMOBILE.LIB 13.1 KB a part of the project -> LIBRARY folder
| |-- TEPOLED12864.LIB 112.4 KB a part of the project -> LIBRARY folder
| |-- TEPRELAY.LIB 490.4 KB a part of the project -> LIBRARY folder
| |-- TEPRESISTOR.LIB 306.9 KB a part of the project -> LIBRARY folder
| |-- TEPTDS.LIB 63.4 KB a part of the project -> LIBRARY folder
| |-- TEPTURBIDITY.LIB 68.2 KB a part of the project -> LIBRARY folder
| |-- TEPVALVE.LIB 18.4 KB a part of the project -> LIBRARY folder
|-- Proteus Model Files/
| |-- TEP1N4007.DLL 286.5 KB a model -> MODELS folder
| |-- TEPDS18B20.DLL 305.0 KB a model -> MODELS folder
| |-- TEPLED5MM.DLL 289.5 KB a model -> MODELS folder
| |-- TEPNET.DLL 2.89 MB a model -> MODELS folder
| |-- TEPOLED.DLL 342.5 KB a model -> MODELS folder
| |-- TEPRELAY.DLL 330.0 KB a model -> MODELS folder
| |-- TEPRESISTOR.DLL 311.0 KB a model -> MODELS folder
| |-- TEPTDS.DLL 314.5 KB a model -> MODELS folder
| |-- TEPTURBIDITY.DLL 322.0 KB a model -> MODELS folder
| |-- TEPVALVE.DLL 281.0 KB a model -> MODELS folder
|-- Proteus Simulation/
| |-- ESP32_Water_Quality.hex 111.5 KB the firmware
| |-- ESP32-Water-Quality.pdsprj 40.7 KB the project simulation
| |-- TEP1N4007.DLL 286.5 KB copy of the model
| |-- TEPDS18B20.DLL 305.0 KB copy of the model
| |-- TEPLED5MM.DLL 289.5 KB copy of the model
| |-- TEPNET.DLL 2.89 MB copy of the model
| |-- TEPOLED.DLL 342.5 KB copy of the model
| |-- TEPRELAY.DLL 330.0 KB copy of the model
| |-- TEPRESISTOR.DLL 311.0 KB copy of the model
| |-- TEPTDS.DLL 314.5 KB copy of the model
| |-- TEPTURBIDITY.DLL 322.0 KB copy of the model
| |-- TEPVALVE.DLL 281.0 KB copy of the model
|-- Arduino Code/
| |-- ESP32_Water_Quality/ESP32_Water_Quality.ino 11.2 KB the sketch (source of the .hex)
|-- README.txt ~14.3 KB this file
Total: 12.63 MB (unzipped). The C++ source code of the models is not included.
WHAT IS IT?
A complete IoT water quality monitor you can run in Proteus: an ESP32 DevKit V1 checks the water that flows into a
tank, closes the supply valve when the water is not safe, and shows everything on an OLED and on a web page for a
laptop or a phone.
* TDS meter (TDSMETERADVTEP, U2) on 5 V (the board's VIN): A (0 - 2.3 V) on D34. TDS = EC x 0.5, the EC from
the maker's curve after the voltage is brought back to 25 C (2 % per C) with the probe's temperature.
* Turbidity sensor (TURBIDITYADVTEP, U3) on 5 V: OUT (0 - 4.5 V) through R1 10k / R2 20k to D35 (the ADC sees
2/3). The maker's curve NTU = -1120.4 V^2 + 5742.3 V - 4352.9; the voltage averaged over 8 s; CAL CLEAR stores
this probe's clear-water voltage (the divider loads the board's output by about 3 %).
* DS18B20 waterproof probe (DS18B20PROBEADVTEP, U4) on 3V3: DQ on D4 with R3 4.7k to 3V3 (OneWire), 12 bits,
read without waiting (setWaitForConversion false).
* 1-channel relay (RELAY1ADVTEP, RLY1) on 5 V: IN on D26 (active LOW); COM from +12V, NO to the 12 V solenoid
water valve (WATERVALVETEP, SV1, normally closed); D3 1N4007 across the valve's coil.
* OLED 128x64 SSD1306 (OLED12864YELLOWBLUEADVTEP, OLED1) at 0x3C: SDA D21, SCL D22.
* Green LED on D25 (SAFE) and red LED on D27 (NOT SAFE), each through 220 ohm (R4, R5).
* Laptop WiFi Monitor (PC1) and Mobile WiFi Monitor (MOB1) open the dashboard at http://192.168.1.101/.
The water is SAFE while TDS <= 900 ppm and turbidity <= 50 NTU; once unsafe it must come back below 880 ppm and
40 NTU. In AUTO the valve closes 2 s after the water turns unsafe and opens after 5 s of safe water. Its pages:
/ the dashboard: the verdict, the valve, TDS, EC, turbidity (with the voltages), the temperature,
the events (newest first)
/open open the valve (MANUAL)
/close close the valve (MANUAL)
/auto back to AUTO
/cal the turbidity probe is in clear water: store its voltage as this probe's zero
/data everything as JSON
TEST STATUS
Tested in Proteus 8 Professional on Windows 11, the run that made the tutorial's screenshots (simulation times):
* OLED at 0x3C OK, DS18B20 found on D4 (25.0 C); tap water (TDS 249 ppm) but the turbidity probe not yet
calibrated: 4.056 - 4.060 V read as about 500 NTU - "water NOT SAFE" at 2 s, the valve CLOSED.
* CAL CLEAR from the laptop at 10 s: "CAL: clear water reads 4.056 V", "water SAFE: 251 ppm, 10 NTU"; the valve
OPEN (AUTO) at 16 s (the valve's window: 14.1 L/min at 2 bar, 0.45 A).
* MUD on the turbidity sensor: NOT SAFE at 21 s (458 NTU, then 3000 NTU), the valve CLOSED at 23 s; TAP again:
SAFE at 35 s, OPEN at 41 s.
* SEA on the TDS meter: NOT SAFE at 43 s (1103 ppm, then 1121 ppm - the top of the range), CLOSED at 46 s.
* OPEN from the phone at 50 s: the valve OPEN (MANUAL); AUTO from the laptop at 54 s: CLOSED again at 56 s.
* TAP on the TDS meter: SAFE at 60 s (249 ppm, 36 NTU), the valve OPEN at 65 s.
* Clear water averages between 0 and about 50 NTU after the calibration: the probe's few millivolts of noise
on the steep part of the curve; the 8 s average and the hysteresis keep the verdict steady.
70 s of simulation took about 17 minutes on our PC with all the captures.
INSTALLATION
1. Close Proteus. Extract the WHOLE zip file, for example to your Desktop.
2. Copy the files from "Proteus Library Files" into the LIBRARY folder of Proteus, for example
C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\LIBRARY
3. Copy the files from "Proteus Model Files" into the MODELS folder (next to LIBRARY).
4. Start Proteus. Press P in the schematic and search for ESP32 DEVKIT V1, TDSMETERADVTEP or TURBIDITYADVTEP to
check that the parts are there.
RUN THE SIMULATION
1. Open "Proteus Simulation\ESP32-Water-Quality.pdsprj". Keep the .hex and .DLL files beside it.
2. Press Play. The ESP32 joins TEP-WiFi; the OLED shows NOT SAFE until the turbidity probe is calibrated.
3. Open the Laptop WiFi Monitor (PC1) or the Mobile WiFi Monitor (MOB1) and press Go. Press Refresh to update it.
4. With the turbidity sensor (U3) in clear or tap water, press CAL CLEAR: the water reads SAFE, the valve opens.
5. Change the water in the pop-ups: MUD (U3) or SEA (U2) closes the valve; TAP opens it again. OPEN / CLOSE on
the page switch to MANUAL; AUTO hands the valve back to the sensors.
Your own sketch: the source is in "Arduino Code". Install the TEP Boards for Proteus add-on from the ESP32 DevKit V1
post, and the OneWire, DallasTemperature, Adafruit SSD1306, Adafruit GFX and Adafruit BusIO libraries from the
Arduino Library Manager; choose Tools > Board > ESP32 DevKit V1 (TEP Proteus), export the compiled binary and set
the board's PROGRAM property to the new .hex file. The same sketch runs on a real ESP32 Dev Module.
PROPERTIES USED IN THIS PROJECT
U1 ESP32 DEVKIT V1 PROGRAM=ESP32_Water_Quality.hex
U2 TDSMETERADVTEP TDS=250 (ppm; TAP), the water at 25 C
U3 TURBIDITYADVTEP (no changes: TAP water, 1 NTU)
U4 DS18B20PROBEADVTEP TEMPERATURE=25 (the same water as U2's)
SV1 WATERVALVETEP (no changes: 12 V, 2 bar)
PC1, MOB1 HOMEPAGE=http://192.168.1.101/
TROUBLESHOOTING
* Clear water reads hundreds of NTU: press CAL CLEAR with the turbidity probe in clear water.
* "DS18B20 missing (25 C used)": DQ is not on D4, or R3 4.7k is missing.
* TDS reads too high or too low: the DS18B20's temperature differs from the TDS meter's water temperature.
* The valve never opens: the water is unsafe, or the page is in MANUAL with the valve closed - press AUTO.
* "Connecting to TEP-WiFi......" never ends: the .hex file is missing beside the project, or TEPNET.DLL is not in
MODELS. Copy the files again and restart Proteus.
LICENCES
* The project, the sketch, the parts (LIB files) and the models (DLL files) are made by The Engineering Projects
and are free for learning and for your own projects. The models use only standard Windows libraries.
The C++ source code of the models is not included; the source code is not included for any model.
* The .hex file is built from the sketch with TEP Boards for Proteus, the Arduino add-on in the ESP32 DevKit V1
download (its licences are listed in that download), and contains the libraries below.
* Proteus is a product of Labcenter Electronics and is not included. ESP32 (Espressif Systems) and DS18B20 (Analog
Devices / Maxim) are names of their owners; this project is not made or endorsed by them.
THIRD-PARTY LICENCES (compiled into ESP32_Water_Quality.hex)
OneWire 2.3.8 - Copyright (c) 2007 Jim Studt, 2008 - 2012 Paul Stoffregen and others - Permission is hereby granted,
free of charge, to any person obtaining a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including without limitation the rights to use, copy,
modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom
the Software is furnished to do so, subject to the following conditions: The above copyright notice and this
permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED
"AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED.
DallasTemperature (Arduino-Temperature-Control-Library) 4.0.6 - Copyright (c) 2024 Miles Burton - MIT licence, the
same terms as OneWire above.
Adafruit SSD1306 2.5.17 - Copyright (c) 2012, Adafruit Industries - BSD licence: Redistribution and use in source
and binary forms, with or without modification, are permitted provided that the following conditions are met: 1.
Redistributions of source code must retain the above copyright notice, this list of conditions and the following
disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions
and the following disclaimer in the documentation and/or other materials provided with the distribution. 3.
Neither the name of the copyright holders nor the names of its contributors may be used to endorse or promote
products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE
COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
Adafruit GFX Library 1.12.6 - Copyright (c) 2012 Adafruit Industries - BSD licence: the same terms as Adafruit
SSD1306 above, without condition 3.
Adafruit BusIO 1.17.4 - Copyright (c) 2017 Adafruit Industries - MIT licence: Permission is hereby granted, free
of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to
deal in the Software without restriction, subject to the following conditions: The above copyright notice and this
permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS
PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED.
VERSION
V1.0 - the first release of the project.
===============================================================================================================Development1 release
-
V1.0IoT Water Quality Monitoring System with ESP32 - Proteus Simulation 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
Extract the archive
Right-click esp32-water-quality-tep-v1-0-f448dead29424a2b84c1a53c13898a61.zip and choose Extract All (or open it with 7-Zip or WinRAR) into a folder you can find again. Keep its folder structure (ESP32-Water-Quality-TEP-v1.0) as it is.
- 2
Copy the library files into Proteus
Move TEP1N4007.LIB, TEPDS18B20.LIB and TEPESP32V1.LIB and 9 more 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
Add the simulation model
Copy TEP1N4007.DLL, TEPDS18B20.DLL and TEPLED5MM.DLL and 7 more into the MODELS folder next to LIBRARY, so the component can run, not only be drawn.
- 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
Open the sketch in the Arduino IDE
Open ESP32_Water_Quality.ino, select your board and port under Tools, then Verify. Sketch → Export Compiled Binary writes the HEX file a simulation needs.
- 6
Load the HEX file
In Proteus double-click the microcontroller, set Program File to ESP32_Water_Quality.hex and run the simulation. For real hardware, flash the same file with your programmer.
- 7
Open the example simulation
Open ESP32-Water-Quality.pdsprj in Proteus to see the wiring exactly as in the tutorial. Check the controller's Program File path, then press Play.
- 8
Follow the tutorial
IoT Water Quality Monitoring System with ESP32 - Proteus Simulation explains every connection and setting in order; keep it open beside the files while you build.
FAQs9 questionsContact TEP
How do I download IoT Water Quality Monitoring System with ESP32 - Proteus Simulation 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?
IoT Water Quality Monitoring System with ESP32 - Proteus Simulation V1.0 comes as a ZIP archive of 36 files (5.6 MB, 12.6 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 36 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, 2a05378c11d51e7e9931f40d4e7fa5d691abfcf3e729704f06a83ab8c0663595. In PowerShell run Get-FileHash "esp32-water-quality-tep-v1-0-f448dead29424a2b84c1a53c13898a61.zip"; on macOS or Linux run shasum -a 256 "esp32-water-quality-tep-v1-0-f448dead29424a2b84c1a53c13898a61.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.
Members skip the wait. Log in or join TEP.
- 1Total downloads
- 4%Popularity
- ProteusCategory
- 0Comments
- ssyedzainnasirUploaded by
- 12 Nov 2026Uploaded at
2a05378c11d51e7e9931f40d4e7fa5d691abfcf3e729704f06a83ab8c0663595






















Comments
0