Electorials Electronics
Published © GPL3+

Project 014: Arduino MLX90614 Infrared Temperature Sensor

This easy project is slightly above a simple temperature detection project as we utilise a MLX90614 sensor to detect an object temperature.

BeginnerProtip12 minutes26,815
Project 014: Arduino MLX90614 Infrared Temperature Sensor

Things used in this project

Hardware components

MLX90614 Infrared Temperature Sensor
×1
Arduino UNO
Arduino UNO
You could use any other Arduino board as well. The Maker Uno is used in this example.
×1
Jumper wires (generic)
Jumper wires (generic)
4 Male to Female Jumper Wires.
×4
USB-A to B Cable
USB-A to B Cable
Depends on the Arduino.
×1
NextPCB
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Circuit Diagram

Schematics

Code

Arduino MLX90614 Infrared Temperature Sensor Project Code

C/C++
#include <Wire.h>
#include <Adafruit_MLX90614.h>
Adafruit_MLX90614 mlx = Adafruit_MLX90614();

void setup() {
  Serial.begin(9600);
  Serial.println("Adafruit MLX90614 test");  
  mlx.begin();  
}

void loop() {
  Serial.print("Ambient = "); Serial.print(mlx.readAmbientTempC()); 
  Serial.print("*C\tObject = "); Serial.print(mlx.readObjectTempC()); Serial.println("*C");
  Serial.print("Ambient = "); Serial.print(mlx.readAmbientTempF()); 
  Serial.print("*F\tObject = "); Serial.print(mlx.readObjectTempF()); Serial.println("*F");
  Serial.println();
  delay(500);
}

Credits

Electorials Electronics
85 projects • 67 followers
I'm an electronic hobbyist interested in anything, from Arduino to drones. I plan to educate people with the content on my website.

Comments