George Kartsonas
Published © Apache-2.0

UVC Disinfectant Light System for Baggage & Parcels

During this pandemic one of the many industries that has been affected is the transportation of goods, its time to make packages safe again.

BeginnerFull instructions provided1 hour159
UVC Disinfectant Light System for Baggage & Parcels

Things used in this project

Story

Read more

Schematics

Wiring connection for PIR Sensor, Relay, and UVC light

Code

Arduino PIR Relay Code

Arduino
int PIR = 4;  // PIR Motion Sensor
int RELAY = 8;  // Relay 
void setup(){
  Serial.begin(9600);
  pinMode(RELAY, OUTPUT);  // Set Pin connected to Relay as an OUTPUT
  digitalWrite(RELAY, LOW);  // Set Pin to LOW to turn Relay OFF
}
void loop(){
  
  while (digitalRead(PIR) == HIGH) {  
       digitalWrite(RELAY, HIGH);  
       Serial.println("Relay is ON");
       delay(500);
}
       digitalWrite(RELAY, LOW);  
       Serial.println("Relay is OFF");
       delay(500);
}

Credits

George Kartsonas

George Kartsonas

18 projects • 37 followers

Comments