How to Read a Datasheet: Absolute Max Ratings, Pinout, Timing
How to read a datasheet: absolute maximum ratings, operating conditions, min/typ/max, pins and timing diagrams, with DHT22, 7805 and MOSFET examples.
Knowing how to read a datasheet answers the most important question in electronics: "will this part burn out, or will it work?" A datasheet is the official technical document a manufacturer publishes for a component: it tells you what voltage it runs at, how much current it draws or can supply, what its pins do, how it communicates and which circuit it should be used with. Example code and videos online can be wrong, but the datasheet gives the values guaranteed by the people who designed the part.
In this article you'll learn the sections of a datasheet in order: absolute maximum ratings, recommended operating conditions, electrical characteristics and the min, typ and max columns, pin descriptions, timing diagrams and the typical application circuit. Then you'll read real values from the datasheets of the DHT22, the 7805 voltage regulator and the IRLZ44N MOSFET and calculate with them, see which documents to read for Arduino, ESP32 and RP2040, and find the most common misunderstandings in a single table.
What is a datasheet and where do you find it?
The safest way to find a part's datasheet is to search for its full part number (for example "L7805CV" or "IRLZ44NPBF") on the manufacturer's website. Different companies make parts with the same number; ST's L7805 and another manufacturer's 7805 can differ slightly in their values. So read the document from the manufacturer of the part you actually have. A datasheet doesn't tell the whole story on its own; with microcontrollers in particular, several documents are used together. If you are using a module, such as a DHT22 module or an ESP32 development board, you also need the board's schematic in addition to the sensor's or chip's datasheet, because extra parts like pull-up resistors, a regulator and LEDs sit on the board. If you can't read schematics yet, the reading circuit diagrams article is a good start.
| Document | What does it contain? | When do you read it? |
|---|---|---|
| Datasheet | Electrical values, pins, package dimensions, typical circuit | The first document for every part |
| Reference manual (TRM) | Detailed operation of the microcontroller's registers and peripherals | When using timers, ADC, DMA and other peripherals in depth |
| Application note | Example circuit and design advice for a specific use | For topics such as heat, layout and noise |
| Errata | Known bugs in the chip and their workarounds | When a feature doesn't work as expected |
| Module datasheet | Antenna, flash and pin information for modules such as ESP32-WROOM | When using a ready-made module |
| Board schematic | Regulator, LEDs, resistors and connections on a development board | For boards such as Arduino, ESP32 DevKit and Pico |
The sections of a datasheet
| Section | What you'll find | Watch out for |
|---|---|---|
| Front page: features and description | What the part is, headline values | These values are a marketing summary under the best conditions |
| Absolute Maximum Ratings | Limits beyond which the part will be damaged | Not operating values |
| Recommended Operating Conditions | Voltage and temperature range in which the part is guaranteed to work | Design within this range |
| Electrical Characteristics | Min, typ and max values with test conditions | The test condition may differ from yours |
| Pin Configuration / Description | Name, type and function of each pin | Check whether it is a top or bottom view |
| Timing Diagrams | The order and duration of signals | Times are usually given as min or max |
| Typical Application | Recommended connection and external parts | Don't skip the capacitors and resistors |
| Typical performance graphs | Variation with temperature, voltage and current | Graphs show typical values, not guarantees |
| Package information and ordering code | Dimensions, pin pitch, suffixes at the end of the part number | Suffixes set the temperature range and package |
Absolute maximum ratings: the line you never cross
The absolute maximum ratings table gives the extremes a part can withstand without permanent damage: the highest supply voltage, the highest and lowest voltage you can apply to a pin, current per pin, total power and storage temperature. These values don't mean "it works up to here"; they mean "exceed this and the part may be damaged, run close to it and its life gets shorter". For example, the ATmega328P datasheet gives 40 mA as the absolute maximum current through an I/O pin, but the output voltages in the electrical characteristics table are measured at 20 mA. So your design should aim for 20 mA or less. For the detailed calculation, see the Arduino pin current article.
Recommended operating conditions and min / typ / max
The recommended operating conditions table gives the range in which the part meets every specification in the datasheet; your design should always stay inside it. In the electrical characteristics table there are three columns for each value. Min and max are the limits the manufacturer guarantees for every part produced. Typ (typical) is the value measured on an average part at room temperature and is not a guarantee. A safe design is always based on the worst case, that is, the min or max value. Each row also has a test condition column, such as "VCC = 5 V, IOH = −20 mA, TA = 25 °C". If your circuit runs at a different voltage or temperature, the value changes too. The table below shows a few typical rows from the ATmega328P datasheet.
| Parameter | Condition | Min | Max | What does it mean? |
|---|---|---|---|---|
| Supply voltage VCC | Operating | 1.8 V | 5.5 V | Works in this range, but with a speed limit |
| Clock frequency | VCC = 4.5–5.5 V | 0 | 20 MHz | 16 MHz needs a supply close to 5 V |
| Input HIGH threshold VIH | VCC = 2.4–5.5 V | 0.6 × VCC | VCC + 0.5 V | At 5 V, at least 3.0 V counts as HIGH |
| Input LOW threshold VIL | VCC = 2.4–5.5 V | −0.5 V | 0.3 × VCC | At 5 V, at most 1.5 V counts as LOW |
| Output HIGH voltage VOH | IOH = −20 mA, VCC = 5 V | 4.2 V | - | While sourcing 20 mA the pin stays at 4.2 V or more |
| Output LOW voltage VOL | IOL = 20 mA, VCC = 5 V | - | 0.9 V | While sinking 20 mA the pin rises to 0.9 V at most |
Pin descriptions and package
The pin diagram shows what each leg of the part does. The first thing to check is the direction of the view: ICs are usually drawn from the top (top view), pin 1 is marked with a dot, notch or bevelled edge, and the numbering runs anticlockwise. Some sensors and surface-mount packages are shown from below (bottom view); miss that and you'll wire a mirror image. The pin table also gives each pin's type: I input, O output, I/O bidirectional, P or PWR power. NC (no connection) is an unconnected pin that is usually left open. Pin order can change between packages of the same part: on the 7805's TO-220 package the order is input, GND, output, but other packages can differ. To quickly see which pin goes where on boards, you can use the pinout tool.
How to read timing diagrams
A timing diagram shows the order in which signals must change during communication and how long each step lasts. The horizontal axis is time; each row is a signal line. A line at the top means HIGH, at the bottom LOW, and crossing lines mark the moment of change. Arrows and letters between two moments (for example tBE, tLOW) define a duration, and their values are given as min, typ and max in the table below the diagram. The DHT22's single-wire protocol is a good example: first the microcontroller pulls the line LOW for at least 1 ms and then releases it; the sensor answers with 80 µs LOW and 80 µs HIGH and then sends 40 bits of data. Each bit starts with a 50 µs LOW; if the following HIGH lasts about 26–28 µs the bit is 0, if it lasts about 70 µs it is 1. Libraries decode the bits by measuring these times; if the timing is disturbed, the reading returns "nan".
| Phase | Who drives it? | Duration (datasheet) | Meaning |
|---|---|---|---|
| Start signal | Microcontroller | LOW, at least 1 ms | Wakes the sensor |
| Wait | Microcontroller releases | HIGH, 20–40 µs | The pull-up pulls the line high |
| Sensor response | DHT22 | 80 µs LOW + 80 µs HIGH | Sensor ready |
| Bit start | DHT22 | 50 µs LOW | Before every bit |
| Bit 0 | DHT22 | 26–28 µs HIGH | Short HIGH = 0 |
| Bit 1 | DHT22 | 70 µs HIGH | Long HIGH = 1 |
| Data | DHT22 | 40 bits | 16-bit humidity + 16-bit temperature + 8-bit checksum |
Typical application circuit
The typical application circuit near the end of the datasheet is the connection the manufacturer used for testing and recommends. The capacitors and resistors in it aren't decoration. The 7805 datasheet shows 0.33 µF at the input and 0.1 µF at the output; the input capacitor is needed if the regulator is far from the filter capacitor, and the output one improves stability during sudden load changes. The DHT22 datasheet recommends a pull-up resistor on the data line and gives a value of around 5.1 kΩ for cables shorter than 20 m. When you buy a module, check the schematic to see whether these parts are already on the board; if you're using a bare sensor, build the typical circuit exactly.
Example 1: reading values from the DHT22 datasheet

| Parameter | Datasheet value | In the code |
|---|---|---|
| Supply voltage | 3.3–6 V DC | 5 V on the Uno, 3.3 V on ESP32 and Pico (lower limit, keep the cable short) |
| Operating range | −40…80 °C, 0…100 %RH | Treat out-of-range values as errors |
| Accuracy | ±0.5 °C, ±2 %RH (max ±5 %RH) | Show the result with ± |
| Resolution | 0.1 °C, 0.1 %RH | One decimal place is enough |
| Sensing period | 2 s on average | Don't read more often than every 2 seconds |
| Power-up | No command for the first 1 s | Wait in setup() |
| Current | 1–1.5 mA measuring, 40–50 µA standby | Use it for battery calculations |
1// DHT22 veri sayfasındaki değerleri koda dökmek
2// Turning DHT22 datasheet values into code
3#include <DHT.h>
4
5const int DHT_PIN = 2; // DATA -> D2 (modülde pull-up var / pull-up on the module)
6const unsigned long SAMPLE_MS = 2000; // datasheet: ölçüm aralığı ort. 2 s / sensing period 2 s
7const float T_MIN = -40.0, T_MAX = 80.0; // datasheet: sıcaklık aralığı / temperature range (°C)
8const float H_MIN = 0.0, H_MAX = 100.0; // datasheet: nem aralığı / humidity range (%RH)
9const float T_ACC = 0.5; // datasheet: sıcaklık doğruluğu / temperature accuracy (°C)
10const float H_ACC = 2.0; // datasheet: tipik nem doğruluğu / typical humidity accuracy (%RH)
11
12DHT dht(DHT_PIN, DHT22);
13unsigned long lastRead = 0;
14
15void setup() {
16 Serial.begin(115200);
17 dht.begin();
18 delay(1500); // datasheet: açılıştan sonra 1 s komut gönderme / no command for 1 s after power-up
19}
20
21void loop() {
22 if (millis() - lastRead < SAMPLE_MS) return; // 2 s'den sık okuma / don't read faster than 2 s
23 lastRead = millis();
24
25 float t = dht.readTemperature();
26 float h = dht.readHumidity();
27
28 if (isnan(t) || isnan(h)) {
29 // Zamanlama ya da sağlama toplamı hatası / timing or checksum error
30 Serial.println("Okuma hatasi: kablo, pull-up ve besleme / read error: wiring, pull-up, supply");
31 return;
32 }
33 if (t < T_MIN || t > T_MAX || h < H_MIN || h > H_MAX) {
34 Serial.println("Aralik disi deger / value out of datasheet range");
35 return;
36 }
37 Serial.print("Sicaklik / temperature: ");
38 Serial.print(t, 1);
39 Serial.print(" +/- ");
40 Serial.print(T_ACC, 1);
41 Serial.print(" C Nem / humidity: ");
42 Serial.print(h, 1);
43 Serial.print(" +/- ");
44 Serial.print(H_ACC, 0);
45 Serial.println(" %RH");
46}
47The code keeps each value read from the datasheet as a named constant, so when you switch to another sensor you can see where everything comes from. The reading interval is 2 seconds, because the datasheet gives an average sensing period of 2 s and reading more often returns the same value again or warms up the sensor. If temperature or humidity is outside the datasheet's operating range, the result isn't trusted and an error is printed. If the reading fails completely, the library returns "nan"; that usually means the times in the timing diagram aren't being met, in other words a wiring, pull-up or supply problem. For troubleshooting steps, see the DHT sensor not reading article.
Example 2: the 7805 regulator and heat calculation

| Parameter | Datasheet value (L7805C) | What does it mean? |
|---|---|---|
| Input voltage (absolute max.) | 35 V | Above this it gets damaged; not an operating value |
| Output voltage | 4.8 / 5.0 / 5.2 V (min / typ / max) | The output isn't exactly 5.00 V on every part |
| Dropout voltage | Typically 2 V (1 A, 25 °C) | The input must be at least about 7 V |
| Quiescent current | 8 mA max | The regulator draws this even with no load |
| Operating junction temperature | 0…125 °C | The upper limit for heat calculations |
| Thermal resistance, junction-ambient (TO-220) | 50 °C/W | Without a heatsink every watt adds 50 °C |
| Thermal resistance, junction-case | 5 °C/W | Used for heatsink calculations |
Let's do a real calculation with these values. You are powering a circuit that draws 0.5 A at 5 V from a 12 V adapter. The power dissipated in the regulator is P = (Vin − Vout) × I = (12 − 5) × 0.5 = 3.5 W. Since the thermal resistance of a TO-220 package without a heatsink is 50 °C/W, the junction temperature in a 25 °C room is 25 + 3.5 × 50 = 200 °C; that is far above the 125 °C limit, and the regulator goes into thermal protection and cuts its output. The power you can safely dissipate without a heatsink is about (125 − 25) / 50 = 2 W. For 3.5 W at 40 °C ambient, the total thermal resistance must be (125 − 40) / 3.5 ≈ 24 °C/W; 5 °C/W of that comes from the case and about 1 °C/W from the insulating pad, so you need a heatsink of 18 °C/W at most. Or, instead of turning the 7 V difference into heat, you use a switching step-down converter. The details are in the 7805 voltage regulator and linear vs switching regulator articles.
Example 3: a MOSFET datasheet (IRLZ44N and IRF540N)
| Parameter | IRLZ44N | IRF540N | What does it mean? |
|---|---|---|---|
| VDS (absolute max.) | 55 V | 100 V | Highest voltage it can switch off |
| Continuous ID (TC = 25 °C) | 47 A | 33 A | With the case held at 25 °C, i.e. an infinite heatsink |
| RDS(on), VGS = 10 V | 0.022 Ω max | 0.044 Ω max | Resistance when fully on |
| RDS(on), VGS = 5 V | 0.025 Ω max | Not specified | How well does it turn on from the Arduino's 5 V? |
| RDS(on), VGS = 4 V | 0.035 Ω max | Not specified | Proof that it's logic level |
| VGS(th) threshold voltage | 1.0–2.0 V (ID = 250 µA) | 2.0–4.0 V (ID = 250 µA) | Only the point where it starts to turn on |
| VGS (absolute max.) | ±16 V | ±20 V | Gate-source limit |
| Thermal resistance, junction-ambient | 62 °C/W | 62 °C/W | Heating without a heatsink |
Two values in a MOSFET datasheet are misread more than any others. The first is VGS(th): seeing 2–4 V for the IRF540N, it's easy to think "the Arduino's 5 V is enough". But the threshold voltage is only the point at which 250 µA flows through the MOSFET; for full turn-on you need to look at the VGS value written in the RDS(on) row of the datasheet. The IRF540N's RDS(on) is only given for 10 V, so it isn't reliable with a 5 V Arduino. The IRLZ44N, on the other hand, also guarantees values for 4 V and 5 V; the "L" in its name stands for logic level. The second is ID = 47 A: this value is calculated with the case temperature held at 25 °C, which is impossible in practice. The real limit is set by the power calculation: at 5 V gate voltage and 5 A, P = I² × R = 5² × 0.025 = 0.625 W, the junction temperature is 25 + 0.625 × 62 ≈ 64 °C and no heatsink is needed. At 10 A the power rises to 2.5 W and the temperature goes above 175 °C; on top of that, RDS(on) increases as it heats up, which makes a heatsink mandatory. For the practical side, see the Arduino MOSFET article, and to compare transistor values, the transistor tool.
Arduino, ESP32 and RP2040 documents
| Platform | Documents to read | Most important values |
|---|---|---|
| Arduino Uno (ATmega328P) | ATmega328P datasheet, Arduino Uno schematic | Absolute max. 40 mA per pin (20 mA for design), 200 mA total through VCC and GND pins, VIH ≥ 0.6 × VCC |
| ESP32 | ESP32 Series Datasheet, ESP32-WROOM-32 module datasheet, Technical Reference Manual, DevKit schematic | Supply absolute max. 3.6 V, pins not 5 V tolerant, VIH ≥ 0.75 × VDD, ADC2 can't be used with Wi-Fi |
| Raspberry Pi Pico (RP2040) | RP2040 datasheet, Raspberry Pi Pico datasheet | IOVDD 3.3 V, pins not 5 V tolerant, pin drive strength selectable 2/4/8/12 mA (default 4 mA), 3V3(OUT) up to 300 mA |
Common misunderstandings
| Misunderstanding | The truth |
|---|---|
| "Absolute max is 40 mA, so I'll draw 40 mA." | Absolute max is the damage limit; design around the test value in the characteristics table (20 mA). |
| "The typ value is guaranteed." | Min and max are guaranteed; typ is the value of an average part at room temperature. |
| "VGS(th) is 2 V, so the MOSFET is fully on at 3.3 V." | Only 250 µA flows at the threshold; look at the VGS given in the RDS(on) row. |
| "It says ID 47 A, so I can drive a 30 A motor." | That value is for a 25 °C case; the real limit is set by power and thermal resistance. |
| "The features on the front page are enough." | The front page summarises the best case; find the test conditions and graphs in the characteristics table. |
| "The module's datasheet is the same as the sensor's." | The module may have a regulator, pull-ups and a level shifter; look at the board's schematic. |
| "The curve in the graph is the same for every part." | Graphs show typical behaviour; use the min and max values from the table in your design. |
Read a new datasheet in 5 steps
- Use the front page to understand what the part is and which packages exist, and match it with the full number of the part you have.
- Mark the voltage and current limits in the absolute maximum table; never get close to them in your circuit under any condition.
- Check the supply and temperature range in the recommended operating conditions and confirm it matches your board's logic level (5 V or 3.3 V).
- Find the row you need in the electrical characteristics, read its test condition and calculate with the worst-case value.
- Read the pin diagram paying attention to the view direction, then compare the typical application circuit and timing diagram with your own circuit.
Reading datasheets seems tiring at first, but after a few parts you'll notice you always look for the same tables: limits, operating range, min and max values, pins and the typical circuit. This habit prevents burnt pins, overheating regulators and sensors that won't read right from the start. In the projects in the BlueGrays app every connection comes with a step-by-step circuit diagram; checking a few of the values from this article in the datasheet of the sensor or driver a project uses, before you build it, makes it easier to understand both the circuit and why it is built that way.
Frequently asked questions
What is a datasheet?
A datasheet is the official technical document a manufacturer publishes for an electronic component. It contains the part's voltage and current limits, its pins, communication timing, package dimensions and the recommended connection circuit.
What is the difference between absolute maximum ratings and operating values?
An absolute maximum rating is the limit beyond which the part may be permanently damaged, and it doesn't guarantee that the part works properly at that value. Operating values are given in the recommended operating conditions and electrical characteristics tables; you should always design within that range.
What do min, typ and max mean in a datasheet?
Min and max are the lower and upper limits the manufacturer guarantees for every part produced. Typ is the typical value measured on an average part at room temperature and is not a guarantee; a safe design is based on the worst case, the min or max value.
Where can I find a component's datasheet?
The most reliable source is the manufacturer's official website, searched with the full number printed on the part. Since more than one company can make the same part number, use the document from the manufacturer of your part; for modules, also look at the board's schematic.
Why is VGS(th) misleading in a MOSFET datasheet?
VGS(th) is the gate voltage at which the MOSFET only starts to pass a tiny current such as 250 µA, not the voltage at which it is fully on. A MOSFET you use with an Arduino should have its RDS(on) specified at a 4.5 V or 5 V gate voltage; that's why logic-level models such as the IRLZ44N are preferred.
Where do I find the Arduino pin current in the datasheet?
In the Electrical Characteristics chapter of the ATmega328P datasheet, under Absolute Maximum Ratings, you'll find a limit of 40 mA per pin and 200 mA in total for the VCC and GND pins. The output voltages in the same chapter are given at 20 mA, so you should aim for 20 mA or less per pin in your design.
Projects to build after reading this
See all projects
Temperature and Humidity with DHT11
How warm is your room, and is the air humid or dry? The DHT11 sensor measures temperature and humidity, and the Arduino writes the values on a two-line LCD screen, refreshing every couple of seconds.

LED Blink
The very first hello of electronics: switching a single LED on and off. The Arduino keeps the LED on for one second and off for one second, so you can easily follow every blink.

LED Blink with ESP32
Teaches basic GPIO output usage with ESP32. We achieve a blinking effect by turning an LED on and off from a digital pin. ESP32 version of the classic blink project on Arduino UNO; the basic blink commands in the Arduino environment are the same, but the ESP32's pin layout and 3.3 V GPIO levels differ from those of the Arduino UNO.

Raspberry Pi Pico Onboard LED Blink (Pico and Pico W)
The opening project of the Raspberry Pi Pico series! We blink the Pico's green built-in LED to confirm the board works, the classic "Hello World" first experiment. No external parts needed, just the Pico and a USB cable. The code is written in MicroPython, the language officially supported by the Raspberry Pi Foundation.

Raspberry Pi Pico: Controlling an External LED (Breadboard)
The next step after the Pico's built-in LED: connect an external LED on a breadboard and control it through pin GP14. You'll learn how to use any of the Pico's GPIO pins as an output, the LED's polarity (long leg = anode/+, short leg = cathode/–) and why a current-limiting resistor (220Ω) is a must. Without the resistor, too much current flows through the LED and it can burn out.

ESP32 DHT22 Temperature and Humidity (with LCD Display)
This project measures ambient temperature and humidity using a DHT22 sensor and displays the data in real time on a 16x2 I2C LCD. Data is read from the sensor using the one-wire protocol via the Adafruit DHT library. This project serves as the foundation for IoT weather stations, smart home automation, or environmental monitoring systems in greenhouses. Communication with the DHT22 is established via the ESP32's GPIO 4 pin.

ESP32 Temperature Data Logger (DHT22 + DS1307 RTC + microSD + OLED)
Build a timed temperature and humidity logger with the ESP32! A DHT22 sensor reads temperature and humidity once a minute, and each reading is saved to a microSD card in CSV format with a real-time stamp from the DS1307 RTC module. The OLED display shows the latest temperature, humidity, timestamp and total number of records live, in large text.

ESP32 LED Fade with PWM
Smoothly changing the brightness of the LED from 0 to max, from max to 0. We control PWM with analogWrite() as in Arduino - the same syntax as ESP32 Arduino Core 3.0+ works without problems. Pin definition + pinMode + analogWrite is enough.
More articles
BlueGrays app
Build this circuit step by step on your phone
Wiring diagram, code and parts list on one screen. 500+ Arduino, ESP32, ESP8266, Pico, mBot and micro:bit projects ready to build.
Scan with your phone
Point your camera at the code and your phone's app store opens.
or open the store

