Arduino - infrared temperature sensor


Infrared temperature sensor is used to measure object temperature without contacting. The sensor GY-906 is kind of low cost IR thermometer sensor which is perfect adapted with Arduino
This project shows how to connect with Arduino UNO and run simple code to read temperature.

GY-906 specification briefly:
Sensor temperature range: -40 ~ 125 degree C
Object temperature range: -70 ~ 380 degree C
Power supply : 3-5VDC

Hardware need:
1. Arduino UNO
2. Sensor infrared thermometer GY-906
3. Some connected cables

1. Connection circuit:
Result is just simple like this:

2. Code parts:
//www.engineer2you.com

#include <Wire.h>
#include <Adafruit_MLX90614.h>
 
Adafruit_MLX90614 mlx = Adafruit_MLX90614();
 
void setup()
{
  Serial.begin(9600);
  mlx.begin();
}
 
void loop()
{
  Serial.print("Ambient = ");
  Serial.print(mlx.readAmbientTempC());
  Serial.print("*C\tObject = ");
  Serial.print(mlx.readObjectTempC());
  Serial.println("*C");
 
  Serial.println();
  delay(1000);
}
Remember that, before compiling the code, library for this sensor should be installed:

That's it! After compiling and downloading the code to board, open monitor screen to see result of temperature. See the video result below for testing by hand and soldering

4. Result video:



0 Comments: