Introduction: Visitor Counter Using Arduino on TinkerCad

Many times we need to monitor the person/people visiting someplace like Seminar hall, conference room or Shopping mall or temple. This project can be used to count and display the number of visitors entering inside any conference room or seminar hall. This is a unidirectional counter which means it works in a single way. That means a counter will be incremented if a person enters the room. LCD displays this value which is placed outside the room.

This system is helpful for counting the number of people in an auditorium or halls for seminar. Moreover, it can also be used to check the number of people who have come to an event or a museum to watch a certain exhibit.

Step 1: Components Required:

1. Arduino UNO

2. LCD 16*2

3. Ultrasonic sensor ( for distance measurement)

3. Buzzer

4. Breadboard

5. Jumper wire for connections

6. Resistor and potentiometer for LCD

Step 2: Circuit Diagram:

I have used a single ultrasonic sensor for uni-directional visitor counter. Within 40 cm range, it will count how many visitors enter the room on a particular day. Whenever a person enters a room the buzzer will beep and there will be an increment in the integer I to show the number of persons.

Ultrasonic trigger pin = 10;

Ultrasonic echo pin = 9;

For LCD connections you can visit in the link given below:

Buzzer = 6;

Step 3: Code:

For credit, please follow my following accounts.

For more interesting projects connect with me on:


Facebook page:


Arduino Contest 2020

Participated in the
Arduino Contest 2020