CONTACLESS THERMOMETER MLX90614

Contactless thermometer MLX90614

#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(” “);

Serial.print(mlx.readAmbientTempC());

Serial.print(” “);

Serial.print(“*C”);

Serial.print(” “);

Serial.print(“Object = “);

Serial.print(” “);

Serial.print(mlx.readObjectTempC());

Serial.print(” “);

Serial.print(“*C”);

Serial.print(” “);

Serial.print(“Ambient = “);

Serial.print(” “);

Serial.print(mlx.readAmbientTempF());

Serial.print(” “);

Serial.print(“*F”);

Serial.print(” “);

Serial.print(“Object = “);

Serial.print(” “);

Serial.print(mlx.readObjectTempF());

Serial.print(” “);

Serial.println(“*F”);

delay(500);

}

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s