Project Files of ENS160 Air Quality Sensor Library for Proteus Simulation
323993bcfe3a4025a2fecc8405230a6b.zip

ENS160 Air Quality Sensor Library for Proteus V1.0
ENS160 Air Quality Sensor Library for Proteus V1.0 comes as a ZIP archive of 22 files (2.6 MB, 5.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
ENS160-Air-Quality-Sensor-Library-for-Proteus-v1.0.zip with the ENS160 + AHT21 air quality module for Proteus simulation (TEPENS160.LIB and TEPENS160.DLL), our I2C LCD, resistors, RGB LED and active buzzer, our Arduino UNO V4.0, the A4 demo, its sketch and a README.
File Structure
7.7 KB201.9 KB9.9 KB18.3 KB181.4 KB306.9 KB13.9 KB883.5 KB276 KB313.5 KB409 KB311 KB287 KB28.2 KB37.5 KB883.5 KB276 KB313.5 KB409 KB311 KB287 KB15.9 KBGallery12 images from the tutorialOpen the tutorial
The circuit, the board and the results as they appear in ENS160 Air Quality Sensor Library for Proteus Simulation. Open an image for its full size.
README
ENS160 AIR QUALITY SENSOR LIBRARY FOR PROTEUS SIMULATION - V1.0 (the ENS160 + AHT21 module, a pop-up)
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/12/ens160-air-quality-sensor-library-for-proteus.html
Report a bug or suggest a feature (our forum):
https://www.theengineeringprojects.com/forum/category/ccs811-air-quality-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
Support us (the libraries are free):
https://www.theengineeringprojects.com/donate
FILE STRUCTURE
ENS160-Air-Quality-Sensor-TEP-v1.0/
|-- Proteus Library Files/
| |-- ArduinoV4TEP.LIB 201.9 KB TEP Arduino boards V4.0 (UNO) -> LIBRARY
| |-- TEPBUZZER.LIB 9.9 KB a part the demo uses -> LIBRARY folder
| |-- TEPENS160.LIB 18.3 KB the library -> LIBRARY folder
| |-- TEPI2CLCD16X2.LIB 181.4 KB a part the demo uses -> LIBRARY folder
| |-- TEPRESISTOR.LIB 306.9 KB a part the demo uses -> LIBRARY folder
| |-- TEPRGB.LIB 13.9 KB a part the demo uses -> LIBRARY folder
|-- Proteus Model Files/
| |-- TEPARDUINO.DLL 883.5 KB the Arduino board model -> MODELS folder
| |-- TEPBUZZER.DLL 276.0 KB its model -> MODELS folder
| |-- TEPENS160.DLL 313.5 KB the model -> MODELS folder
| |-- TEPLCD.DLL 409.0 KB its model -> MODELS folder
| |-- TEPRESISTOR.DLL 311.0 KB its model -> MODELS folder
| |-- TEPRGB.DLL 287.0 KB its model -> MODELS folder
|-- Proteus Simulation/
| |-- ENS160_Demo.hex 37.5 KB the demo firmware
| |-- ENS160-Room-Air-ArduinoUnoV4.pdsprj 28.2 KB the demo project
| |-- TEPARDUINO.DLL 883.5 KB copy of the board model
| |-- TEPBUZZER.DLL 276.0 KB copy of its model
| |-- TEPENS160.DLL 313.5 KB copy of the model
| |-- TEPLCD.DLL 409.0 KB copy of its model
| |-- TEPRESISTOR.DLL 311.0 KB copy of its model
| |-- TEPRGB.DLL 287.0 KB copy of its model
|-- Arduino Code/
| |-- ENS160_Demo/ENS160_Demo.ino 7.7 KB the demo sketch (source of the .hex)
|-- README.txt ~16.2 KB this file
Total: 5.65 MB (unzipped). The C++ source code of the models is not included.
WHAT IS IT?
The common ENS160 + AHT21 air quality module, drawn from the top at its real size (about 24 x 20
mm): the ENS160 metal-oxide gas sensor
(3 x 3 mm), the AHT21 temperature and humidity sensor (3 x 3 mm), the 3.3 V and 1.8 V regulators,
the I2C level shifters and the 8-pin
header VIN 3V3 GND SCL SDA ADD CS INT. The drawing is our own; the model follows the ENS160
datasheet v1.1 and the AHT21 datasheet:
* Both chips on one I2C bus: the ENS160 at 0x53 (ADD high, the board's default) or 0x52 (ADD low),
the AHT21 at 0x38.
* ENS160 registers (little-endian, auto-increment): PART_ID 0x0160, OPMODE (deep sleep, idle,
standard, reset), CONFIG (the INT pin),
COMMAND (GET_APPVER, CLRGPR - only in idle), TEMP_IN (K x 64) / RH_IN (% x 512), DEVICE_STATUS
(validity, new data), DATA_AQI
(AQI-UBA 1 - 5), DATA_TVOC (ppb), DATA_ECO2 (ppm), DATA_T / DATA_RH, DATA_MISR (a checksum of
the reads), GPR.
* A result every second in standard mode; a warm-up after every start (validity 1) - 3 minutes on
the real chip, WARMUP seconds here
(3 s by default, so the demo shows it in fast time). INT active low (push-pull or open drain, as
CONFIG says) on each new result.
* eCO2 is an ESTIMATE from the volatile organic compounds, not a CO2 measurement.
* The AHT21: 0xAC 0x33 0x00 starts a measurement (80 ms); status, 20-bit humidity, 20-bit
temperature and a CRC-8 follow.
* The host should write the AHT21's temperature and humidity into TEMP_IN / RH_IN: without them
the ENS160 assumes 25 C / 50 % and its
readings drift with the real humidity.
* The air: PROFILE DEMO is a recorded meeting room in fast time (clean air, people arriving, a
cleaning spray, the window opened); STEADY
uses TVOC, TEMP and RH. At Run the ENS160's hotplate glows while it measures and a blue dot
marks each AHT21 measurement.
* Click the module for the pop-up: the AQI on its 1 - 5 scale, TVOC, eCO2, the room and the
compensation the chip uses, the registers;
graphs, an event log and a check page.
The body is drawn as on the real part and to true scale against our Arduino.
The TEP signature and the pop-up are TEP additions.
ONE DEVICE (search "ENS160" or "air quality" in Pick Devices):
ENS160TEP "ENS160 Air Quality Sensor V1.0" in TEPENS160.LIB (Modules > Sensors), prefix U, model
TEPENS160.DLL (mixed).
Pins: VIN 3V3 GND SCL SDA ADD CS INT (the header). 3V3 is the board regulator's 3.3 V
output; ADD and CS may stay open.
The demo also uses our I2C LCD 16x2 (TEPI2CLCD16X2 / TEPLCD), resistors (TEPRESISTOR), our RGB LED
(TEPRGB) and our active buzzer
(TEPBUZZER).
THE POP-UP
Click the part at Run. Tabs:
ENS160 The AQI with its level and the 1 - 5 scale, TVOC and eCO2 (with the eCO2 band), the
room's temperature and humidity and what
the ENS160 compensates with; the registers PART_ID, OPMODE, CONFIG, TEMP_IN / RH_IN,
DEVICE_STATUS, DATA_AQI, DATA_TVOC,
DATA_ECO2, DATA_MISR and the firmware; the AHT21's status and raw values; tiles: VIN
and the 3V3 output, the addresses,
OPMODE, INT, results, results read, TEMP_IN / RH_IN writes, AHT21 measurements.
Chips: Room demo, Clean air, People, Spray, Humid 80 %.
Graphs the live values over the last 2, 6 or 15 s. Live / Freeze.
Event log every change and warning; filters All / Changes / Warnings, Pause, Clear
Check what the part is doing and what to look at, each with a verdict (green = fine, amber
= check, red = wrong)
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
TEST STATUS
V1.0: verified in Proteus 8.5 on 24 Nov 2026 (the demo project as shipped: an A4 sheet, an Arduino UNO V4.0).
What the runs showed (the model's own numbers and the sketch's monitor):
* The project loads and starts cleanly; the demo ran 13.3 simulated seconds in about 3 minutes on
our PC with the pop-up open and the
pictures being taken. Three devices on one I2C bus: the ENS160 (0x53), the AHT21 (0x38) and the
LCD (0x27).
* Start-up: booted 11 ms, AHT21 ready 102 ms; reset 302 ms, IDLE 317.9 ms, GET_APPVER 348.9 ms
(5.4.6), CONFIG 0x23 364.9 ms, STANDARD
365.2 ms; "PART_ID 0x0160, firmware 5.4.6, OPMODE 2"; "AHT21: status 0x18 (calibrated)".
* Warm-up (validity 1): 1.35 s TVOC 11 ppb / eCO2 409 ppm, 2.35 s 24 / 422 (blue LED); "warm-up
over" at 3.37 s.
* Clean air: AQI 1 EXCELLENT, 40 - 44 ppb, 439 - 449 ppm at 22.0 C / 42 %; every MISR check "ok".
* People: 6.35 s AQI 2 (146 ppb, 600 ppm, 22.6 C / 46 %); 7.35 s AQI 3 (255 ppb); 8.35 s 373 ppb,
939 ppm at 23.8 C / 56 %.
* Spray: 9.37 s AQI 5 UNHEALTHY 2930 ppb / 1581 ppm (red LED, beeps); 10.35 s 2978 / 1601.
* Window: 11.35 s AQI 4 (828 ppb); 12.35 s AQI 2 (179 ppb, 687 ppm, 22.8 C / 48 %). 12 results, 12
read; 13 TEMP_IN / RH_IN writes;
the chip compensating with 22.4 C / 45 % for air at 22.4 C / 45 %.
* The pop-up (ENS160, Graphs, Event log, Check) followed the run.
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" (TEPENS160.LIB, TEPI2CLCD16X2.LIB, TEPRESISTOR.LIB,
TEPRGB.LIB, TEPBUZZER.LIB 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
(use the folder that already holds Proteus's own .LIB files).
3. Copy TEPENS160.DLL, TEPLCD.DLL, TEPRESISTOR.DLL, TEPRGB.DLL, TEPBUZZER.DLL and TEPARDUINO.DLL
from "Proteus Model Files" to the MODELS folder (...\Proteus 8 Professional\MODELS).
4. Delete TEPENS160.IDX from the LIBRARY folder if it is there (Proteus makes a new index).
5. Start Proteus. In Pick Devices (P) search "ENS160".
RUN THE DEMO
"Proteus Simulation\ENS160-Room-Air-ArduinoUnoV4.pdsprj" (an A4 sheet) - keep the .hex file and the
DLLs beside the project.
ARD1: Arduino UNO V4.0 running ENS160_Demo.hex (window "TEP Arduino UNO - ARD1"): A4 / A5 =
I2C (the module and the LCD), D2 = INT,
D8 = the buzzer, D9 - D11 = the RGB LED.
U1: the ENS160 + AHT21 module with the DEMO meeting room.
LCD1: a 16x2 LCD on its I2C backpack at 0x27: the AQI and its name, eCO2 and TVOC.
D1: our RGB LED (common cathode) through R1 - R3 (220 ohm): green excellent ... red
unhealthy, blue while warming up.
BZ1: our active buzzer: beeps at AQI 5.
The sketch resets the ENS160, checks PART_ID, reads the firmware in IDLE, sets CONFIG 0x23 (INT on
new data, push-pull, active low) and
STANDARD; every second it measures with the AHT21 and writes TEMP_IN / RH_IN; on each INT it reads
DEVICE_STATUS, the five data bytes
and the MISR checksum. The DEMO is a recorded run in fast time.
Closed the monitor? Click the UNO's USB port.
WIRING (the same in Proteus and on a real board)
VIN to 5 V (the level shifters follow VIN, so use your board's logic voltage), GND to GND, SCL /
SDA to the I2C pins (A5 / A4 on an
UNO), INT to any digital input (D2). ADD open = 0x53, ADD to GND = 0x52. Leave CS open (high =
I2C).
REAL HARDWARE:
* Give it the 3 minutes of warm-up after every start, and the first hour of its life for its
initial start-up (validity 2).
* Write the temperature and humidity every few seconds - the AHT21 on the same board is the easy
source.
* The AHT21 on these boards reads several degrees high while the ENS160's hotplates run; correct it
or use a separate sensor.
* eCO2 is estimated from VOCs: for real CO2 use an NDIR or photoacoustic CO2 sensor.
* Keep the sensor away from silicone vapours and strong solvents; they can poison metal-oxide
sensors.
THE DEMO SKETCH ON THE SERIAL MONITOR (ENS160_Demo V1.0, 9600 baud)
ENS160_Demo prints the chips' identity, then a line for each result (one a second). EXPECTED MONITOR
OUTPUT (shortened)
Meeting room air: ENS160 at 0x53 + AHT21 at 0x38, INT on D2, RGB LED D9-D11, LCD 0x27
ENS160: PART_ID 0x0160, firmware 5.4.6, OPMODE 2
AHT21: status 0x18 (calibrated)
... s ...C ...% WARM-UP TVOC ... ppb eCO2 ... ppm ok
PROPERTIES (double-click the part > Edit Properties)
PROFILE DEMO (the meeting room) or STEADY (TVOC, TEMP, RH). Default DEMO.
TVOC For STEADY: the volatile organic compounds, ppb. Default 100.
TEMP For STEADY: the air temperature, C. Default 22.
RH For STEADY: the relative humidity, %. Default 45.
WARMUP The warm-up after each start of a measurement, s. Default 3 (the real chip: 180).
Every run starts again from the properties.
LINKS.INI (OPTIONAL)
The Help page cards of the pop-up open web pages. To point them somewhere else without a new DLL,
put a text file named links.ini next to TEPENS160.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
* Nothing answers at 0x53: ADD is low (0x52), CS was pulled low (SPI until the next power-up) or the
chip is in DEEP SLEEP.
* PART_ID reads 0x0000: the chip is in deep sleep - write OPMODE = 0x01 first.
* The AQI never leaves the warm-up: wait WARMUP seconds after OPMODE = 0x02 (3 minutes on a real
chip).
* The readings change with the humidity: write TEMP_IN / RH_IN (LSB first; the value takes effect on
the MSB).
* COMMAND does nothing: commands only run in IDLE.
* The part is not simulated: TEPENS160.DLL is missing from MODELS and from the project folder.
* The part is not simulated: TEPENS160.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.
BUG REPORTS AND FEATURE REQUESTS
Please post them in our forum with a screenshot, the Serial Monitor text, the
simulation log and the pop-up's Copy diagnostics text:
https://www.theengineeringprojects.com/forum/category/ccs811-air-quality-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 model (TEPENS160.DLL), the symbols and artwork, the other parts of ours in the demo 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 models use 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 .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
* 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 Arduino or 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\ENS160_Demo\ENS160_Demo.ino, select Arduino Uno and use Sketch > Export Compiled
Binary. Replace the simulation's .hex with the exported HEX. The sketch needs 13,648 bytes of flash
and 596 bytes of RAM.
MODEL SCOPE AND LIMITS
Modelled: the ENS160's register map, the modes, the commands, the compensation inputs, DEVICE_STATUS
with validity and new data, AQI /
TVOC / eCO2, DATA_T / DATA_RH, the MISR checksum, GPR, the INT pin with its CONFIG, the 0x52 / 0x53
address, the SPI lock by CS; the
AHT21's status, trigger, 80 ms measurement, 20-bit values and CRC-8; the 3V3 output; the DEMO room
or a steady air.
Our figures: power-up and reset to IDLE in 10 ms, the AHT21 ready after 100 ms, WARMUP 3 s, AQI from
the TVOC by the UBA bands in ppb,
the compensation error (1 % per %RH and 0.5 % per C), the firmware 5.4.6, INT released by the first
data read.
Not modelled: SPI, the initial start-up hour, the raw hotplate resistances in GPR_READ, the AHT21's
self-heating on the board.
VERSION
TEP ENS160 Air Quality Sensor library V1.0 (Nov 2026). Device ENS160TEP (TEPENS160.LIB /
TEPENS160.DLL). Demo sketch ENS160_Demo V1.0 (Wire only). Demo board: ARDUINO UNO V4.0 (TEP Arduino
Library V4.0) with its built-in serial monitor; our I2C LCD 16x2, resistor, RGB LED and active
buzzer libraries.Development1 release
-
V1.0ENS160 Air Quality 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
Extract the archive
Right-click 323993bcfe3a4025a2fecc8405230a6b.zip and choose Extract All (or open it with 7-Zip or WinRAR) into a folder you can find again. Keep its folder structure (ENS160-Air-Quality-Sensor-TEP-v1.0) as it is.
- 2
Copy the library files into Proteus
Move ArduinoV4TEP.LIB, TEPBUZZER.LIB and TEPENS160.LIB and 3 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 TEPARDUINO.DLL, TEPBUZZER.DLL and TEPENS160.DLL and 3 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 ENS160_Demo.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 ENS160_Demo.hex and run the simulation. For real hardware, flash the same file with your programmer.
- 7
Open the example simulation
Open ENS160-Room-Air-ArduinoUnoV4.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
ENS160 Air Quality Sensor Library for 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 ENS160 Air Quality 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?
ENS160 Air Quality Sensor Library for Proteus V1.0 comes as a ZIP archive of 22 files (2.6 MB, 5.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 22 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, 837fe8be1bdfe67aeff91c4feda8b6dbb1b324ee79d2f42afbabaf709769a959. In PowerShell run Get-FileHash "323993bcfe3a4025a2fecc8405230a6b.zip"; on macOS or Linux run shasum -a 256 "323993bcfe3a4025a2fecc8405230a6b.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.
- 0Total downloads
- 4%Popularity
- ProteusCategory
- 0Comments
- ssyedzainnasirUploaded by
- 4 Dec 2026Uploaded at
837fe8be1bdfe67aeff91c4feda8b6dbb1b324ee79d2f42afbabaf709769a959



























Comments
0