rushilsaraswat
Published © CC BY-ND

COVID-19 Detection Door Guard

It is a device which can be hung over doors and can detect a person who is infected with COVID-19 and alarm everyone in that room.

IntermediateFull instructions provided63
COVID-19 Detection Door Guard

Things used in this project

Hardware components

Arduino Nano R3
Arduino Nano R3
×1
Buzzer
Buzzer
×1
Male/Female Jumper Wires
Male/Female Jumper Wires
×1
Female/Female Jumper Wires
Female/Female Jumper Wires
×1
Android device
Android device
×1
Plastic Enclosure, Junction Box
Plastic Enclosure, Junction Box
×1

Software apps and online services

Arduino Web Editor
Arduino Web Editor

Hand tools and fabrication machines

Tape, Electrical
Tape, Electrical
Soldering Iron Tip, Knife
Soldering Iron Tip, Knife

Story

Read more

Schematics

The Schematics

This is the circuit diagram for the device.

Code

The code

C/C++
This is the code f the device.
int ledPin = 13;                
        
            
                    
int pinSpeaker = 10; 
#include <OneWire.h>

#include <OneWire.h>
#include <DallasTemperature.h>
int buzzer = 8;



int temp_sensor = 2;

float temperature = 0;
int lowerLimit = 37.5;
int higherLimit = 38.5;
OneWire oneWirePin(temp_sensor);
DallasTemperature sensors(&oneWirePin);

void setup() {
  pinMode(ledPin, OUTPUT);      

  pinMode(pinSpeaker, OUTPUT);
  Serial.begin(9600);
   pinMode(buzzer,OUTPUT);

  sensors.begin();
}

void loop(){
  Serial.print("Requesting Temperatures from sensors: ");
  sensors.requestTemperatures(); 
  Serial.println("DONE");
 temperature = sensors.getTempCByIndex(0);
  digitalWrite(buzzer, LOW);
  Serial.print("Temperature is ");
  Serial.print(temperature);
    
    if (temperature >= higherLimit) {
     
      Serial.println("COVID-19 Suspect detected!");
      
    digitalWrite(buzzer, HIGH);
    digitalWrite(ledPin, HIGH); } 

    
   else {
    Serial.println(", No COVID-19 Suspect."); 
    digitalWrite(buzzer, LOW);
    digitalWrite(ledPin, LOW);} 

      
     
    }

Credits

rushilsaraswat

rushilsaraswat

0 projects • 1 follower

Comments