Creating a Touchless Doorbell

Creating a Touchless Doorbell


This project deals with a problem faced by the whole world due to the pandemic Covid-19. No person wants to touch anything outside their houses so to this problem we have a solution by using a Touchless Doorbell

In this project, we have used an ultrasonic sensor to calculate the distance of the person from the doorbell if the distance is less than 20 inches then the buzzer gets activated and produces a continuous sound to let us know that there is someone outside the door and also tells the distance of the person from the door.

Hardware required 

  1. Arduino Uno R3
  2. Ultrasonic Sensor
  3. Resistor
  4. Buzzer
  5. Jumper Wires

Schematic Diagram

Fig 1.  Circuit Diagram

Arduino Code : 

int inches = 0;
const int buzzer = 8;
int cm = 0;

long readUltrasonicDistance(int triggerPin, int echoPin)
  pinMode(triggerPin, OUTPUT);  
  digitalWrite(triggerPin, LOW);
    digitalWrite(triggerPin, HIGH);
  digitalWrite(triggerPin, LOW);
  pinMode(echoPin, INPUT);
    return pulseIn(echoPin, HIGH);

void setup()
  pinMode(buzzer, OUTPUT);


void loop()
  cm = 0.01723 * readUltrasonicDistance(7, 7);
  inches = (cm / 2.54);
  if (inches < 20)
{ tone(buzzer, 1000);

else {
  Serial.print("in, ");


  1. Connections should be done properly.
  2. Arduino is case Sensitive so code accordingly.
  3. Give different colors to the wires.

Do you have questions regarding our STEM program?

Contact us anytime.

Take your first step into the magical world of coding for kids


More Posts

Send Us A Message

Coding For kids

Coding Courses for Kids Online

Our courses which are tailored for grades 1 to 12, and our hands-on curriculum seamlessly integrates, preparing students for challenges and inspiring the next generation.


STEM LAB for Schools

If you are a school searching for a cutting-edge makerspace solution that goes beyond conventional education, look no further. Partner with Makers’ Muse to unlock a world of innovation and transformative learning experiences for your students. 

Coding Toys

STEM LAB for Schools

Discover a revolutionary coding journey for students with our cutting-edge educational toys. Partner with us to unlock innovative learning experiences that transcend traditional education.

Leave a Reply