# Using Melexis MLX90614 Non-Contact Sensors

## Overview

![](https://cdn-learn.adafruit.com/assets/assets/000/014/671/medium800/temperature_1747_LRG.jpg?1393629804)

This cyber-tronic looking sensor hides a secret behind it's glimmering eye. Unlike most temperature sensors, this sensor measures infrared light bouncing off of remote objects so it can sense temperature _without_ having to touch them physically. Simply point the sensor towards what you want to measure and it will detect the temperature by absorbing IR waves emitted. Because it doesn't have to touch the object it's measuring, it can sense a wider range of temperatures than most digital sensors: from -70°C to +380°C! It takes the measurement over an 90-degree field of view so it can be handy for determining the average temperature of an area.

![](https://cdn-learn.adafruit.com/assets/assets/000/014/656/medium800/temperature_1748size_LRG.jpg?1393623971)

This sensor comes in an easy-to-use metal can. You can easily solder it or plug it into a breadboard. The four pins are used for power, ground, i2c clock and i2c data. There are two versions, one for 3V power and logic levels and one for 5V power and logic levels. You'll also want two 10K pull-up resistors for the I2C data lines, which we thoughtfully include.

![](https://cdn-learn.adafruit.com/assets/assets/000/014/657/medium800/temperature_1748_LRG.jpg?1393623979)

Some specifications

- Factory calibrated
- -40°C to +125°C for sensor temperature
- -70°C to +380°C for object temperature
- ±0.5°C accuracy around room temperatures
- High accuracy of 0.5°C over wide temperature
- 90° Field of view
- 5V version: 4.5 to 5.5V power
- 3V version: 2.6 to 3.6V power
- I2C interface, 0x5A is the fixed 7-bit address

# Using Melexis MLX90614 Non-Contact Sensors

## Wiring and Test

# Pinout
![](https://cdn-learn.adafruit.com/assets/assets/000/014/661/medium800/temperature_mlxclose.jpg?1393625207)

Despite being in an odd casing, the sensor is a lot like a simple sensor in a 'classic' integrated circuit shape. There are four pins. The datasheet has a diagram from the **bottom view** of the sensor which is a little annoying to refer to when wiring so use this image above.

# Arduino Wiring
You can easily wire this sensor to any microcontroller, we'll be using an Arduino  
Info: 

![](https://cdn-learn.adafruit.com/assets/assets/000/014/662/medium800/temperature_wiring.jpg?1393625214)

Note the tab is how we will keep track of pins, in this wiring image, the tab is on the south side of the sensor, there's a red arrow pointing to it

- Connect **GND** to common power/data ground
- Connect **PWR** to the power supply, for the 3V sensor this is about 3.3V. For the 5V version, use about 5VDC
- Connect the **SDA** pin to the I2C data **SDA** pin on your Arduino. On an UNO & '328 based Arduino, this is also known as **A4** , on a Mega it is also known as **digital 20** and on a Leonardo/Micro, **digital 2**
- Connect the **SCL** pin to the I2C clock **SCL** pin on your Arduino. On an UNO & '328 based Arduino, this is also known as **A5** , on a Mega it is also known as **digital 21** and on a Leonardo/Micro, **digital 3**  

The MLX90614 has a fixed I2C address, you can only connect _one_ sensor per microcontroller! # Download Adafruit\_MLX90614
To begin reading sensor data, you will need to [download Adafruit\_MLX90614 from our github repository](https://github.com/adafruit/Adafruit-MLX90614-Library). You can do that by visiting the github repo and manually downloading or, easier, just click this button to download the zip[Download the Adafruit MLX90614 Library](https://github.com/adafruit/Adafruit-MLX90614-Library/archive/master.zip)
Rename the uncompressed folder **Adafruit\_MLX90614** and check that the **Adafruit\_**** MLX90614 **folder contains** Adafruit\_ ****MLX90614****.cpp **and** Adafruit\_ ****MLX90614****.h**  
  
Place the **Adafruit\_**** MLX90614 **library folder your** arduinosketchfolder/libraries/** folder.   
You may need to create the **libraries** subfolder if its your first library. Restart the IDE.  
  
We also have a great tutorial on Arduino library installation at:  
[http://learn.adafruit.com/adafruit-all-about-arduino-libraries-install-use](http://learn.adafruit.com/adafruit-all-about-arduino-libraries-install-use)

# Load Demo
Open up **File-\>Examples-\>Adafruit\_MLX90614**** -\>mlxtest** and upload to your Arduino wired up to the sensor  
![](https://cdn-learn.adafruit.com/assets/assets/000/014/664/medium800/temperature_mlxtest.gif?1448049676)

Now you can open up the serial console to see the ambient and object temperature printed out. Ambient temperature is the temperature of the sensor itself. The object temp is what its measuring in the 90-degree field of view.

![](https://cdn-learn.adafruit.com/assets/assets/000/014/665/medium800/temperature_sensorout.gif?1448049670)

# Using Melexis MLX90614 Non-Contact Sensors

## Downloads

[You can grab the datasheet here, it has a lot more details about the MLX90614](http://www.adafruit.com/datasheets/MLX90614.pdf "Link: http://www.adafruit.com/datasheets/MLX90614.pdf")  

## Featured Products

### Melexis Contact-less Infrared Sensor - MLX90614 3V

[Melexis Contact-less Infrared Sensor - MLX90614 3V](https://www.adafruit.com/product/1747)
This cyber-tronic looking sensor hides a secret behind it's glimmering eye. Unlike most temperature sensors, this sensor measures infrared light emitted off of remote objects so it can sense temperature _without_ having to touch them physically. Simply point the sensor towards what...

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/1747)
[Related Guides to the Product](https://learn.adafruit.com/products/1747/guides)
### Melexis Contact-less Infrared Sensor - MLX90614 5V

[Melexis Contact-less Infrared Sensor - MLX90614 5V](https://www.adafruit.com/product/1748)
This cyber-tronic looking sensor hides a secret behind its glimmering eye. Unlike most temperature sensors, this sensor measures infrared light emitted off of remote objects so it can sense temperature _without_ having to touch them physically. Simply point the sensor towards what you...

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/1748)
[Related Guides to the Product](https://learn.adafruit.com/products/1748/guides)

## Related Guides

- [PyPortal Smart Thermometer with Analog Devices ADT7410, Adafruit IO and CircuitPython](https://learn.adafruit.com/pyportal-smart-thermometer-with-analog-devices-adt7410-adafruit-io-and-circuitpython.md)
- [Storage humidity and temperature monitor](https://learn.adafruit.com/storage-humidity-and-temperature-monitor.md)
- [Adafruit HTU21D-F Temperature & Humidity Sensor](https://learn.adafruit.com/adafruit-htu21d-f-temperature-humidity-sensor.md)
- [Adafruit MCP9600 I2C Thermocouple Amplifier](https://learn.adafruit.com/adafruit-mcp9600-i2c-thermocouple-amplifier.md)
- [Using the BMP085/180 with Raspberry Pi or Beaglebone Black](https://learn.adafruit.com/using-the-bmp085-with-raspberry-pi.md)
- [Wireless Gardening with Arduino + CC3000 WiFi Modules](https://learn.adafruit.com/wireless-gardening-arduino-cc3000-wifi-modules.md)
- [CircuitPython BLE Multi-Temperature Monitoring](https://learn.adafruit.com/circuitpython-multi-temperature-ble-monitoring.md)
- [Adafruit Sensirion SHT40, SHT41 & SHT45 Temperature & Humidity Sensors](https://learn.adafruit.com/adafruit-sht40-temperature-humidity-sensor.md)
- [Ikea Vindriktning Hack with QT Py ESP32-S3 and Adafruit IO](https://learn.adafruit.com/ikea-vindriktning-hack-with-qt-py-esp32-s3-and-adafruit-io.md)
- [DIY Trinkey No-Soldering USB Air Quality Monitor](https://learn.adafruit.com/diy-trinkey-no-solder-air-quality-monitor.md)
- [Analog Devices ADT7410 Breakout](https://learn.adafruit.com/adt7410-breakout.md)
- [No-Code Seedling Frost Alert Device with Adafruit IO and WipperSnapper](https://learn.adafruit.com/no-code-seedling-frost-and-sun-alert-with-adafruit-io-and-wippersnapper.md)
- [WiFi Weather Station](https://learn.adafruit.com/wifi-weather-station-arduino-cc3000.md)
- [Bluetooth Temperature & Humidity Sensor](https://learn.adafruit.com/bluetooth-temperature-and-humidity-sensor.md)
- [Adafruit MAX31856 Universal Thermocouple Amplifier](https://learn.adafruit.com/adafruit-max31856-thermocouple-amplifier.md)
