TEP DOWNLOAD CENTER

Project Files of SHT40 Humidity Sensor Library for Proteus Simulation

Libraries Code Projects Simulation
tep://download-terminal 0ce6257aa0f4448e9f5ca0ceb5e76dc0.zip ZIP archiveV1.0Verified0 downloadsFree
SHT40 Humidity Sensor Library for Proteus Simulation: the SHT40 breakout, an I2C LCD 16x2 and a PC fan with an Arduino UNO V4.0
Proteus library · File 1 of 1

SHT40 Humidity Sensor Library for Proteus V1.0

SHT40 Humidity Sensor Library for Proteus V1.0 comes as a ZIP archive of 16 files (2.0 MB, 4.2 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

SHT40-Humidity-Sensor-Library-for-Proteus-v1.0.zip with the SHT40 temperature and humidity sensor for Proteus simulation (TEPSHT40.LIB and TEPSHT40.DLL), our I2C LCD and PC fan, our Arduino UNO V4.0, the A4 demo, its sketch and a README.

Read SHT40 Humidity Sensor Library for Proteus Simulation

File Structure

0ce6257aa0f4448e9f5ca0ceb5e76dc0.zip16 files · 5 folders · 4.2 MB unpacked
SHT40-Humidity-Sensor-TEP-v1.0/16 files · 4.2 MB
Arduino Code/1 file · 6.3 KB
SHT40_Demo/1 file · 6.3 KB
INO SHT40_Demo.inoArduino sketch 6.3 KB
Proteus Library Files/4 files · 422.4 KB
LIB ArduinoV4TEP.LIBProteus library 201.9 KB
LIB TEPI2CLCD16X2.LIBProteus library 181.4 KB
LIB TEPPCFAN.LIBProteus library 24.8 KB
LIB TEPSHT40.LIBProteus library 14.2 KB
Proteus Model Files/4 files · 1.9 MB
DLL TEPARDUINO.DLLSimulation model 883.5 KB
DLL TEPLCD.DLLSimulation model 409 KB
DLL TEPPCFAN.DLLSimulation model 303.5 KB
DLL TEPSHT40.DLLSimulation model 324 KB
Proteus Simulation/6 files · 1.9 MB
DSN SHT40-Bathroom-Fan-ArduinoUnoV4.pdsprjProteus simulation 24.9 KB
HEX SHT40_Demo.hexCompiled HEX file 38 KB
DLL TEPARDUINO.DLLSimulation model 883.5 KB
DLL TEPLCD.DLLSimulation model 409 KB
DLL TEPPCFAN.DLLSimulation model 303.5 KB
DLL TEPSHT40.DLLSimulation model 324 KB
TXT README.txtText file 13.9 KB

README

README.txt 237 lines
SHT40 HUMIDITY SENSOR LIBRARY FOR PROTEUS SIMULATION - V1.0 (temperature and humidity on I2C, its heater, 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/sht40-humidity-sensor-library-for-proteus.html
Report a bug or suggest a feature (our forum):
  https://www.theengineeringprojects.com/forum/category/aht20-sensor-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
SHT40-Humidity-Sensor-TEP-v1.0/
|-- Proteus Library Files/
|   |-- ArduinoV4TEP.LIB                              201.9 KB   TEP Arduino boards V4.0 (UNO) -> LIBRARY
|   |-- TEPI2CLCD16X2.LIB                             181.4 KB   a part the demo uses -> LIBRARY folder
|   |-- TEPPCFAN.LIB                                   24.8 KB   a part the demo uses -> LIBRARY folder
|   |-- TEPSHT40.LIB                                   14.2 KB   the library -> LIBRARY folder
|-- Proteus Model Files/
|   |-- TEPARDUINO.DLL                                883.5 KB   the Arduino board model -> MODELS folder
|   |-- TEPLCD.DLL                                    409.0 KB   its model -> MODELS folder
|   |-- TEPPCFAN.DLL                                  303.5 KB   its model -> MODELS folder
|   |-- TEPSHT40.DLL                                  324.0 KB   the model -> MODELS folder
|-- Proteus Simulation/
|   |-- SHT40_Demo.hex                                 38.0 KB   the demo firmware
|   |-- SHT40-Bathroom-Fan-ArduinoUnoV4.pdsprj         24.9 KB   the demo project
|   |-- TEPARDUINO.DLL                                883.5 KB   copy of the board model
|   |-- TEPLCD.DLL                                    409.0 KB   copy of its model
|   |-- TEPPCFAN.DLL                                  303.5 KB   copy of its model
|   |-- TEPSHT40.DLL                                  324.0 KB   copy of the model
|-- Arduino Code/
|   |-- SHT40_Demo/SHT40_Demo.ino                       6.3 KB   the demo sketch (source of the .hex)
|-- README.txt                                        ~14.7 KB   this file
Total: 4.24 MB (unzipped). The C++ source code of the models is not included.

WHAT IS IT?
The common SHT40 temperature and humidity breakout, drawn from the top at its real size: the 18 x 13
mm board, the 1.5 x 1.5 mm SHT40 on
an island cut free by two routed slots (so the warmth of the board does not reach it), the 3.3 V
regulator, the I2C pull-ups, the PWR LED and
the header VIN GND SCL SDA. The drawing is our own; the model follows the SHT4x datasheet:
  * I2C at 0x44 (SHT40-AD1B; 0x45 and 0x46 for the BD1B and CD1B versions - the ADDRESS property).
    Every action is ONE command byte:
    0xFD / 0xF6 / 0xE0 measure with high / medium / low repeatability (6.9 / 3.7 / 1.3 ms typical,
    8.3 / 4.5 / 1.6 ms at most), 0x89 the
    serial number, 0x94 a soft reset, 0x39 / 0x32 / 0x2F / 0x24 / 0x1E / 0x15 the heater (200 / 110
    / 20 mW for 1 s or 0.1 s).
  * Six bytes back: temperature MSB, LSB, CRC, humidity MSB, LSB, CRC (CRC-8, polynomial 0x31, start
    0xFF). T = -45 + 175 x St / 65535,
    RH = -6 + 125 x Srh / 65535.
  * No clock stretching: while it measures, the chip answers its address with a NACK. A result is
    read once.
  * The heater warms the chip (a heater measurement is hot - and its humidity reads low): it is for
    drying the sensor, not for the air.
  * The air: PROFILE DEMO is a bathroom in fast time (a shower from 0.5 s to 4.5 s, the humidity
    climbing to 95 %, then the room dries);
    STEADY holds TEMP and HUMIDITY (the pop-up's chips move them).
  * Click the board for the pop-up: the air and the chip on two bars with the host's last reading,
    the last commands; 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 "SHT40" or "humidity" in Pick Devices):
  SHT40TEP  "SHT40 Humidity Sensor V1.0" in TEPSHT40.LIB (Modules > Sensors), prefix U, model
  TEPSHT40.DLL (mixed).
            Pins: VIN GND SCL SDA (left).
  The demo also uses our 16x2 LCD on its I2C backpack (TEPI2CLCD16X2 / TEPLCD) and our 12 V 4-pin PC
  fan (TEPPCFAN).

THE POP-UP
Click the part at Run. Tabs:
    Sensor      The air and the chip on two bars (temperature -10 - 90 C, humidity 0 - 100 %) with
    the host's last reading, the heater, the
                dew point; the last commands with their results; tiles: the address and the supply,
                the last temperature and humidity, the
                dew point, the measurements, the heater, the serial number, the NACKs and the chip's
                current. Chips: Demo air, T +1 / -1 C,
                RH +5 / -5 %.
    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 21 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 7.6 simulated seconds in about 3 minutes 43
    seconds on our PC with the pop-up open
    and the pictures being taken.
  * Start: a soft reset (0x94), the serial number 0x0EF2F613 (0x89), then a high-repeatability
    measurement (0xFD) every 0.5 s.
  * The quiet bathroom: 22.99 C, 50.0 %RH (dew point 12.0 C), the fan off. The shower from 0.5 s:
    60.2 %RH at 0.7 s, 76.4 %RH at 1.2 s -
    the fan on at 66 %; 85.0 %RH at 1.7 s (88 %); 92.1 %RH at 2.7 s (100 %).
  * The heater: two readings at 90 %RH or more (92.1, 93.5) - 0x39, 200 mW for 1 s. At 3.49 s the
    chip at 77.9 C (the air 26.1 C),
    reading 7.2 %RH (the air 93.9 %RH), 60.6 mA; the heated reading 78.99 C / 7.1 %RH, printed and
    ignored.
  * The room dries from 4.5 s: 26.15 C / 81.6 %RH at 4.9 s (fan 78 %), 64.8 %RH at 5.9 s (40 %),
    58.6 %RH at 6.9 s (still 40 % - the
    band), 57.2 %RH at 7.4 s - the fan off.
  * In all: 14 measurements (high repeatability), 15 results read, 0 NACKs, 1 heater pulse (1.01 s).
  * The pop-up (Sensor, Graphs, Event log, Check) followed the run; the Check page showed all five
    lines green.

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" (TEPSHT40.LIB, TEPI2CLCD16X2.LIB, TEPPCFAN.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 TEPSHT40.DLL, TEPLCD.DLL, TEPPCFAN.DLL and TEPARDUINO.DLL from "Proteus Model Files" to the
MODELS folder (...\Proteus 8 Professional\MODELS).
4. Delete TEPSHT40.IDX from the LIBRARY folder if it is there (Proteus makes a new index).
5. Start Proteus. In Pick Devices (P) search "SHT40".

RUN THE DEMO
"Proteus Simulation\SHT40-Bathroom-Fan-ArduinoUnoV4.pdsprj" (an A4 sheet) - keep the .hex file and
the DLLs beside the project.
  ARD1:     Arduino UNO V4.0 running SHT40_Demo.hex (window "TEP Arduino UNO - ARD1"): A4 / A5 = SDA
  / SCL, D9 = the fan's PWM (25 kHz),
            D2 = the fan's tach.
  U1:       the SHT40 at 0x44 on the DEMO air (a bathroom shower).
  LCD1:     a 16x2 LCD on its I2C backpack at 0x27: the temperature and humidity on top, the dew
  point and the fan below.
  FAN1:     a 12 V 4-pin PC fan as the extractor fan: +12V terminal, GND, PWM on D9, TACH on D2.
  The sketch measures every 0.5 s, checks both CRCs, works out the dew point, switches the fan on at
  65 %RH and off under 58 %RH (40 - 100 %
  speed from 65 to 90 %RH) and fires the heater once when the humidity stays at 90 % or more.
Closed the monitor? Click the UNO's USB port.

WIRING (the same in Proteus and on a real board)
  VIN 3.3 - 5 V and GND (the board's regulator gives the SHT40 3.3 V), SCL / SDA to the I2C bus (the
  board has the pull-ups). Several
  sensors at 0x44 need different versions (0x45, 0x46) or a multiplexer.
REAL HARDWARE:
 * Typical accuracy: 0.2 C and 1.8 %RH (the simulation reads the air exactly).
 * Wait 8.3 ms after 0xFD before reading - the SHT40 does not stretch the clock, it answers NACK.
 * The heater is for drying the sensor after condensation, at most 1 s at a time and under 10 % of
   the time.
 * Keep the sensor away from warm parts: a few tenths of a degree of self-heating shift the humidity
   by a percent or more.

THE DEMO SKETCH ON THE SERIAL MONITOR (SHT40_Demo V1.0, 9600 baud)
SHT40_Demo prints every reading and the fan. EXPECTED MONITOR OUTPUT (shortened)
  Bathroom fan: SHT40 at 0x44, LCD at 0x27, fan PWM on D9 (25 kHz), tach on D2
  SHT40 serial number 0x...
  0.5 s  23.00 C  50.0 %RH  dew 12.0 C  fan 0 %  0 rpm
  ...
    -> heater pulse 0x39: 200 mW for 1 s
    -> heated reading .. C  .. %RH (ignored)

PROPERTIES (double-click the part > Edit Properties)
  ADDRESS   0x44 (SHT40-AD1B), 0x45 (BD1B) or 0x46 (CD1B). Default 0x44.
  PROFILE   DEMO (a bathroom shower) or STEADY (TEMP / HUMIDITY). Default DEMO.
  TEMP      The air temperature for STEADY, C. Default 23.0.
  HUMIDITY  The relative humidity for STEADY, %. Default 50.
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 TEPSHT40.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
* Wire.requestFrom() returns 0: the sketch read too early (wait 8.3 ms after 0xFD), or it read the
  same result twice.
* The CRC does not match: the bytes were not read in order, or the CRC is computed with a wrong
  start value (0xFF).
* The humidity reads far too low and the temperature far too high: the reading came from a heater
  command.
* No answer at all: the address does not match ADDRESS, or VIN is not powered.
* The part is not simulated: TEPSHT40.DLL is missing from MODELS and from the project folder.
* The part is not simulated: TEPSHT40.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/aht20-sensor-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 (TEPSHT40.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\SHT40_Demo\SHT40_Demo.ino, select Arduino Uno and use Sketch > Export Compiled Binary.
Replace the simulation's .hex with the exported HEX. The sketch needs 13,822 bytes of flash and 507
bytes of RAM.

MODEL SCOPE AND LIMITS
Modelled: the command set (measure x 3, serial, soft reset, heater x 6), the NACK while busy, the
6-byte answers with their CRCs, the
measurement times, the repeatability noise, the heater's warming and its effect on the humidity, the
three addresses.
Our figures: the chip reads the air exactly (no accuracy offset); the heater warms the chip as a
first-order lag (50 ms, 263 K/W - from
the maker's application note: 200 mW for 1 s averages +50 C); the serial number comes from the
part's name; the DEMO air runs in fast time.
Not modelled: the long-term creep at high humidity, the sensor's response time to the air (a few
seconds), the 1 MHz bus mode.

VERSION
TEP SHT40 Humidity Sensor library V1.0 (Nov 2026). Device SHT40TEP (TEPSHT40.LIB / TEPSHT40.DLL).
Demo sketch SHT40_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 and 4-pin PC fan libraries.
Advertisement

Development1 release

  1. V1.0SHT40 Humidity Sensor Library for Proteus V1.0this page

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

Installation8 steps

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

You will need

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

Steps

  1. 1

    Extract the archive

    Right-click 0ce6257aa0f4448e9f5ca0ceb5e76dc0.zip and choose Extract All (or open it with 7-Zip or WinRAR) into a folder you can find again. Keep its folder structure (SHT40-Humidity-Sensor-TEP-v1.0) as it is.

  2. 2

    Copy the library files into Proteus

    Move ArduinoV4TEP.LIB, TEPI2CLCD16X2.LIB and TEPPCFAN.LIB and 1 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. 3

    Add the simulation model

    Copy TEPARDUINO.DLL, TEPLCD.DLL and TEPPCFAN.DLL and 1 more 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 SHT40_Demo.ino, select your board and port under Tools, then Verify. Sketch → Export Compiled Binary writes the HEX file a simulation needs.

  6. 6

    Load the HEX file

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

  7. 7

    Open the example simulation

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

  8. 8

    Follow the tutorial

    SHT40 Humidity Sensor Library for Proteus Simulation 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 SHT40 Humidity 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?

SHT40 Humidity Sensor Library for Proteus V1.0 comes as a ZIP archive of 16 files (2.0 MB, 4.2 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 16 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, 1a16fd1fd3ab0a59c5555ab24f811f44ee25b2420b8d466f36d9d17b718b9c00. In PowerShell run Get-FileHash "0ce6257aa0f4448e9f5ca0ceb5e76dc0.zip"; on macOS or Linux run shasum -a 256 "0ce6257aa0f4448e9f5ca0ceb5e76dc0.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 · 0ce6257aa0f4448e9f5ca0ceb5e76dc0.zip
Rating
Your download will be ready shortly
Preparing your download…

Members skip the wait. Log in or join TEP.

  • 0Total downloads
  • 4%Popularity
  • ProteusCategory
  • 0Comments
  • ssyedzainnasirUploaded by
  • 2 Dec 2026Uploaded at
Last 14 days0 downloads
SHA-256 1a16fd1fd3ab0a59c5555ab24f811f44ee25b2420b8d466f36d9d17b718b9c00
DocumentationSHT40 Humidity Sensor Library for Proteus Simulation
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.