Rohan Barnwal
Published

A Device For Shopkeepers To Get Prevent From COVID19

Hello everyone this is Rohan Barnwal here welcome back with another project as we all know that whole world is fighting with COVID19........

IntermediateFull instructions provided461
A Device For Shopkeepers To Get Prevent From COVID19

Things used in this project

Hardware components

NodeMCU ESP8266 Breakout Board
NodeMCU ESP8266 Breakout Board
×1
MLX90614
×1

Software apps and online services

Arduino IDE
Arduino IDE
Blynk
Blynk

Story

Read more

Custom parts and enclosures

CAD File

Schematics

Connection

Code

Code

Arduino
#include <Wire.h>
#include <Adafruit_MLX90614.h>
//Created By Rohan Barnwal                                                                                                                                                                                                                                                                                                      
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
BlynkTimer timer;
char auth[] = ""; //Auth code sent via Email
char ssid[] = ""; //Wifi name
char pass[] = "";  //Wifi Password
Adafruit_MLX90614 mlx = Adafruit_MLX90614();
void notifyOnThings(){
  if(mlx.readAmbientTempC()<Add Your Temperature && mlx.readAmbientTempC()>Add Your Temperature)//You Have to set the Temperature value according to your surrounding 
  { 
     Blynk.notify( "there is no problem" );
    
  
      
  }

 
  else if(mlx.readAmbientTempC()>38) {
    Blynk.notify("Please Be Careful");
    
  
  }


}

void setup() {
  Serial.begin(9600);
Serial.begin(9600);
Blynk.begin(auth, ssid, pass); 
pinMode(D4,OUTPUT);
pinMode(D3,OUTPUT);
timer.setInterval(50L,notifyOnThings); 
  Serial.println("Adafruit MLX90614 test");  

  mlx.begin();  
}

void loop() {
  Serial.print("Ambient = "); 
  Serial.print(mlx.readAmbientTempC()); 
  Serial.print("*C\tObject = "); 
  delay(50);
  Serial.print(mlx.readObjectTempC()); Serial.println("*C");


  Serial.println();
  
   Blynk.run();
  timer.run();
}



  

Credits

Rohan Barnwal

Rohan Barnwal

20 projects • 30 followers
Rohan Barnwal - maker, hacker, tech enthusiast. I explore new tech & find innovative solutions. See my projects on hackster.io!

Comments