Sathyajith Lakshan
Published

Contactless Temperature Measure

Contactless temperature measure with arduino and Blynk. io

BeginnerProtip129
Contactless Temperature Measure

Things used in this project

Story

Read more

Schematics

Diagram

Code

Arduino Code

Arduino
#define BLYNK_TEMPLATE_ID "TMPL6NT2YQEQD"
#define BLYNK_TEMPLATE_NAME "Temperature"
#define BLYNK_AUTH_TOKEN "mNcqDjfl8ofYsMBr1nsm6FOoVqn_z_74"

#define BLYNK_PRINT Serial

#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <Wire.h>
#include <Adafruit_MLX90614.h>

Adafruit_MLX90614 mlx = Adafruit_MLX90614();

char ssid[] = "UdithaL Y5p";
char pass[] = "1994uditha";

double temp_amb;
double temp_obj;
double calibration = 2.36;

void setup(){
  Serial.begin(115200);

  Blynk.begin(BLYNK_AUTH_TOKEN, ssid, pass);
  mlx.begin();
  Serial.println("Temperature Sensor MLX90614");
}

void loop(){
  Blynk.run();
  temp_amb = mlx.readAmbientTempC();
  temp_obj = mlx.readObjectTempC();

  Serial.print("Room Temp = ");
  Serial.println(temp_amb);
  Serial.print("Object temp = ");
  Serial.println(temp_obj);
  
  Blynk.virtualWrite(V1, temp_amb);
//  Blynk.virtualWrite(V2, temp_obj);
  Blynk.virtualWrite(V2, (temp_obj + calibration));
  
  delay(1000);
}

Credits

Sathyajith Lakshan
3 projects • 1 follower
I am a student, absolutely crazy about electronics, IOT
Contact

Comments

Please log in or sign up to comment.