Component guide · Beginner · 3 min read
MLX90614 (GY-906) Non-Contact Thermometer

Pinout, Wiring, Code
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
The MLX90614 measures the temperature of an object without touching it, by reading its infrared radiation, and also reports its own ambient temperature. It talks I2C at address 0x5A. Versions differ in field of view: BAA about 90 degrees, BCC about 35 degrees and DCI about 5 degrees, so the narrow ones read smaller targets from further away.
Key specs at a glance
- Object range
- −70 to +380 °C
- Ambient range
- −40 to +125 °C
- Accuracy
- ±0.5 °C around room temperature (medical DCI version ±0.2 °C in a narrow range)
- Field of view
- BAA ~90°, BCC ~35°, DCI ~5°
- Interface
- I2C (SMBus), address 0x5A; PWM output option
- Supply
- 3.3 V (B versions) or 5 V (A versions); GY-906 modules accept 3.3 to 5 V
Models in this guide
These are alternatives. Pick the one that fits your project; you only need one.
Option 1GY-906 MLX90614ESF DCI Non-Contact Infrared Temperature Sensor Module₹2,479
Option 2GY-906 MLX90614ESF-BCC Non-Contact Infrared Temperature Sensor Module – I2C Interface₹799
Option 3Waveshare MLX90614 Contactless IR Temperature Sensor Module – I2C Interface₹1,719
Option 4DFRobot Gravity MLX90614-DCC I2C Non-contact IR Temperature Sensor Module for Arduino₹2,307
Option 5MLX90614 ESF IR Non-Contact Temperature Sensor Module – I2C Interface₹699
What the MLX90614 IR thermometer is
Every object gives off infrared energy that rises with temperature. The MLX90614 focuses that energy onto a thermopile and turns it into a temperature, with the reading averaged over its whole field of view.
That averaging matters: a BAA version a few centimetres from a small chip also sees the board around it. Choose a narrow BCC or DCI version for small or distant targets, such as motors, soldering tips or body temperature at a set distance.
MLX90614 IR thermometer pinout
The pins on the MLX90614 IR thermometer and what each one does.
| Pin | Function |
|---|---|
| VIN | 3.3 to 5 V (module) |
| GND | Ground |
| SCL | I2C clock |
| SDA | I2C data |
- VIN
- 3.3 to 5 V (module)
- GND
- Ground
- SCL
- I2C clock
- SDA
- I2C data
Wiring the MLX90614 IR thermometer
Keep the I2C bus at 100 kHz; the MLX90614 uses SMBus timing and can misbehave at 400 kHz.
| MLX90614 IR thermometer pin | Arduino Uno | ESP32 |
|---|---|---|
| VCC | 5V (or 3.3V) | 3V3 |
| GND | GND | GND |
| SDA | A4 | GPIO 21 |
| SCL | A5 | GPIO 22 |
- VCC
- Arduino Uno:
- 5V (or 3.3V)
- ESP32:
- 3V3
- GND
- Arduino Uno:
- GND
- ESP32:
- GND
- SDA
- Arduino Uno:
- A4
- ESP32:
- GPIO 21
- SCL
- Arduino Uno:
- A5
- ESP32:
- GPIO 22
Example code
Install the Adafruit MLX90614 library.
#include <Wire.h>
#include <Adafruit_MLX90614.h>
Adafruit_MLX90614 mlx;
void setup() {
Serial.begin(115200);
if (!mlx.begin()) { Serial.println("MLX90614 not found"); while (1); }
}
void loop() {
Serial.print("Object: "); Serial.print(mlx.readObjectTempC()); Serial.print(" C ");
Serial.print("Ambient: "); Serial.print(mlx.readAmbientTempC()); Serial.println(" C");
delay(500);
}Setup and tuning
a 90 degree sensor sees a circle about twice as wide as the distance. Get close, or use a narrow version.
the default is 1.0 (close to skin, paint and plastic at 0.95). Shiny metal reads far too low; put matt black tape on it.
let the sensor settle at room temperature and shield it from air currents.
glass blocks the infrared it measures.
What you need
Shop this list7 of 7 found in our store · ₹8,531
GY-906 MLX90614ESF DCI non-contact IR module: narrow 5° field of viewGY-906 MLX90614ESF DCI Non-Contact Infrared Temperature Sensor Module₹2,479Closest match, check the specs
GY-906 MLX90614ESF-BCC module: 35° field of viewGY-906 MLX90614ESF-BCC Non-Contact Infrared Temperature Sensor Module – I2C Interface₹799Closest match, check the specs
Waveshare MLX90614 IR temperature module: ready-made boardWaveshare MLX90614 Contactless IR Temperature Sensor Module – I2C Interface₹1,719Closest match, check the specs
DFRobot Gravity MLX90614-DCC: Gravity connectorDFRobot Gravity MLX90614-DCC I2C Non-contact IR Temperature Sensor Module for Arduino₹2,307
MLX90614 ESF IR temperature module: general purpose versionMLX90614 ESF IR Non-Contact Temperature Sensor Module – I2C Interface₹699Closest match, check the specs
ESP32-WROOM-32 38-pin development board: for Wi-Fi logging and dashboardsESP32-WROOM-32 38-Pin Development Board₹389
0.96 inch OLED display 128x64: to show readings without a computer0.96" OLED Display 128x64₹139Closest match, check the specs
Alternatives and when to choose them
- Thermal imaging modules: AMG8833 or MLX90640 to see a whole heat map.
- DS18B20: contact probe, cheaper and more accurate for liquids.
- MAX6675: thermocouple for high temperatures by contact.
Try it: Temperature converter calculator
Change the values and the diagram and results update as you type.
Common mistakes to avoid
- Measuring a small object from far away with the 90 degree version.
- Aiming at shiny metal and getting a reading near room temperature.
- Running the I2C bus at 400 kHz.
- Trying to read through glass or a plastic window.
Frequently asked questions
Which MLX90614 version should I buy?
BAA for general use close up, BCC for medium distance, DCI for small targets or longer distance.
Can it measure body temperature?
It can read skin temperature, but it is not a certified medical device; do not use it for diagnosis.
What is the I2C address?
0x5A by default. It can be changed in the sensor's EEPROM.
Why is the reading lower than expected?
The target is smaller than the field of view, or it is shiny with low emissivity.
Does it work at 3.3 V?
GY-906 modules include a regulator and work from 3.3 to 5 V.
How fast is it?
New readings about every 100 ms by default.
Parts for this guide
Calculators
Terms in this guide
Projects that use it
Put this into practice: 33 step-by-step builds in our project library use parts from this guide.
Keep learning
Sources
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.
