Contactless Hand Sanitizer Project

Convert your regular sanitizer dispenser into contactless Sanitizer dispenser.

This is a pretty cool project that will also keep you safe from corona virus . Install it in your Car , main door entrance , in the wash basin .

All the materials required for this project can be ordered from Amazon.in through the link provided below.

https://www.amazon.in/dp/B088R88Z66/

Here is a picture for your reference from http://www.hackster.io https://www.hackster.io/engineerkid/contactless-hand-sanitizer-dispersal-f649ab

Code:

Servo sg90servo;
void setup() {
  pinMode(7, INPUT);
  sg90servo.attach(9);
  

}

void loop() {
  if(digitalRead(7)==LOW)
  {
  sg90servo.write(130);
  
  }
  else
  {
  sg90servo.write(0);
  
  }
}

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

Start a Blog at WordPress.com.

Up ↑

Create your website at WordPress.com
Get started
%d bloggers like this: