In today's smart-home environment, IoT technology makes everyday activities more convenient, secure, and intelligent. One useful application is a Smart Doorbell with Mobile Notification.
Traditional doorbells only produce sound inside the house. If the homeowner is away, they may not know when someone arrives at the entrance.
To overcome this limitation, we can develop an IoT-based Smart Doorbell using an ESP32 microcontroller and the KiwisIoT Dashboard.
Whenever a visitor presses the doorbell button, the ESP32 detects the button press and sends an event through Wi-Fi to the KiwisIoT platform. The dashboard displays the doorbell status, and a configured mobile push-notification service can notify the homeowner.
This project provides a simple and practical way to monitor visitors remotely using IoT technology.
2. Project ObjectiveThe main objective of this project is to develop a smart doorbell system that provides instant visitor notifications through an IoT dashboard and a mobile device.
3Key objectives:
Detect visitors using a physical push button.
- Detect visitors using a physical push button.
Process the doorbell event using an ESP32.
- Process the doorbell event using an ESP32.
Connect the hardware to the internet using Wi-Fi.
- Connect the hardware to the internet using Wi-Fi.
Send doorbell events to the KiwisIoT Dashboard.
- Send doorbell events to the KiwisIoT Dashboard.
Display real-time doorbell status.
- Display real-time doorbell status.
Trigger mobile push notifications through a configured notification service.
- Trigger mobile push notifications through a configured notification service.
Allow homeowners to monitor doorbell activity remotely.
- Allow homeowners to monitor doorbell activity remotely.
The Smart Doorbell system works through communication between the physical doorbell, ESP32, cloud dashboard, and smartphone.
Working flow:
A visitor presses the physical doorbell button.
- A visitor presses the physical doorbell button.
The ESP32 detects the button press.
- The ESP32 detects the button press.
The ESP32 activates the local buzzer.
- The ESP32 activates the local buzzer.
The ESP32 sends the event through Wi-Fi.
- The ESP32 sends the event through Wi-Fi.
KiwisIoT receives and displays the event.
- KiwisIoT receives and displays the event.
A configured notification rule triggers a mobile push notification.
- A configured notification rule triggers a mobile push notification.
The homeowner receives an alert on their smartphone.
- The homeowner receives an alert on their smartphone.
Visitor → Push Button → ESP32 → Wi-Fi → KiwisIoT Dashboard → Mobile Notification
5. Circuit ConnectionsConnect the components to the ESP32 according to the following pin configuration.
Component
ESP32 Pin
Push Button
GPIO 18
Buzzer Positive
GPIO 19
LED Positive (through resistor)
GPIO 21
Push Button Other Terminal
GND
Buzzer Negative
GND
LED Negative
GND
Important: Configure the push button as INPUT_PULLUP. This means the input reads HIGH normally and LOW when the button is pressed.
Use a suitable transistor driver if your buzzer requires more current than an ESP32 GPIO can safely supply. Never connect a high-current buzzer directly to an ESP32 pin.
6. How the Hardware WorksESP32 MicrocontrollerThe ESP32 is the main processing unit. It monitors the push button, controls the buzzer and LED, and communicates with the KiwisIoT cloud platform through Wi-Fi.
Push ButtonThe push button acts as the visitor input. When someone presses it, the ESP32 detects the change in its GPIO input state.
BuzzerThe buzzer generates a local alert whenever the doorbell is pressed.
LED IndicatorThe LED provides a visual indication that the doorbell has been activated.
Wi-Fi CommunicationWi-Fi allows the ESP32 to transmit doorbell events to the cloud platform without requiring a direct wired connection to the homeowner's smartphone.
7. ESP32 ProgrammingThe firmware performs four important operations:
Connect to the Wi-Fi network.
- Connect to the Wi-Fi network.
Monitor the doorbell button.
- Monitor the doorbell button.
Activate the buzzer and LED.
- Activate the buzzer and LED.
Send the doorbell event to KiwisIoT.
- Send the doorbell event to KiwisIoT.
The following is an illustrative Arduino programming structure. Replace the Wi-Fi and cloud communication settings with the exact connection details and MQTT configuration supplied by your KiwisIoT device setup.
#include <WiFi.h>
#include <PubSubClient.h>
// Wi-Fi credentials
const char* ssid = "YOUR_WIFI_NAME";
const char* password = "YOUR_WIFI_PASSWORD";
// Use the broker settings provided by KiwisIoT
const char* mqtt_server = "YOUR_MQTT_BROKER";
const int mqtt_port = YOUR_MQTT_PORT;
// Use your actual device topic and credentials
const char* mqtt_topic = "YOUR_DEVICE_TOPIC";
#define BUTTON_PIN 18
#define BUZZER_PIN 19
#define LED_PIN 21
WiFiClient espClient;
PubSubClient client(espClient);
bool lastButtonState = HIGH;
unsigned long lastPressTime = 0;
void connectWiFi() {
WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED) {
delay(500);
}
}
void reconnectMQTT() {
while (!client.connected()) {
if (client.connect("SmartDoorbellESP32")) {
break;
}
delay(2000);
}
}
void setup() {
Serial.begin(115200);
pinMode(BUTTON_PIN, INPUT_PULLUP);
pinMode(BUZZER_PIN, OUTPUT);
pinMode(LED_PIN, OUTPUT);
digitalWrite(BUZZER_PIN, LOW);
digitalWrite(LED_PIN, LOW);
connectWiFi();
client.setServer(mqtt_server, mqtt_port);
}
void loop() {
if (!client.connected()) {
reconnectMQTT();
}
client.loop();
bool buttonState = digitalRead(BUTTON_PIN);
if (lastButtonState == HIGH &&
buttonState == LOW &&
millis() - lastPressTime > 1000) {
lastPressTime = millis();
digitalWrite(BUZZER_PIN, HIGH);
digitalWrite(LED_PIN, HIGH);
// Replace with the payload required by your
// KiwisIoT device integration.
client.publish(mqtt_topic, "DOORBELL_PRESSED");
Serial.println("Doorbell Pressed!");
delay(500);
digitalWrite(BUZZER_PIN, LOW);
digitalWrite(LED_PIN, LOW);
}
lastButtonState = buttonState;
}Note: This is a starting firmware example, not a verified drop-in KiwisIoT configuration. The MQTT broker, port, authentication, topic, and message format must match the connection details provided for your registered device. Add TLS where required by the platform. For a production device, use a non-blocking debounce and reconnect strategy.
8. Connecting the ESP32 to KiwisIoT DashboardKiwisIoT is used to receive, display, and monitor the doorbell events.
Step 1: Create a KiwisIoT AccountOpen the KiwisIoT website.
- Open the KiwisIoT website.
Create an account or sign in.
- Create an account or sign in.
Verify your account if required.
- Verify your account if required.
Open the dashboard.
- Open the dashboard.
Website: https://www.kiwisiot.in/
Step 2: Create a New Dashboard PanelNavigate to My Panels.
- Navigate to My Panels.
Select Create Panel.
- Select Create Panel.
Enter the panel name:
Smart Doorbell Monitoring
- Enter the panel name:Smart Doorbell Monitoring
Save the panel.
- Save the panel.
Add widgets to display the doorbell information.
Recommended widgets:
Status Indicator – Doorbell status.
- Status Indicator – Doorbell status.
Text Widget – Latest visitor event.
- Text Widget – Latest visitor event.
LED Indicator – Doorbell activation.
- LED Indicator – Doorbell activation.
Chart or Event History – Doorbell activity over time, if supported by your configured data source.
- Chart or Event History – Doorbell activity over time, if supported by your configured data source.
Open the device connection or device management section.
- Open the device connection or device management section.
Register or connect your ESP32.
- Register or connect your ESP32.
Obtain the device connection credentials.
- Obtain the device connection credentials.
Copy the required topic ID.
- Copy the required topic ID.
Configure the same connection information in the ESP32 firmware.
- Configure the same connection information in the ESP32 firmware.
Upload the firmware.
- Upload the firmware.
Verify that the device appears online.
- Verify that the device appears online.
Press the physical doorbell button.
The dashboard should receive the event and update the configured status widget.
Example dashboard values:
Parameter
Example Value
Device Status
Online
Doorbell Status
PRESSED
Last Event
Doorbell Pressed
Wi-Fi Status
Connected
The widget configuration and payload mapping must match the data format sent by your ESP32.
9. Mobile Notification ConfigurationOne of the most important features of this project is the mobile notification.
The objective is to notify the homeowner whenever a visitor presses the doorbell.
Notification WorkflowThe visitor presses the doorbell.
- The visitor presses the doorbell.
The ESP32 publishes a doorbell event.
- The ESP32 publishes a doorbell event.
KiwisIoT receives the event.
- KiwisIoT receives the event.
A configured alert or event rule identifies the doorbell activation.
- A configured alert or event rule identifies the doorbell activation.
The notification service sends a push notification to the registered smartphone.
- The notification service sends a push notification to the registered smartphone.
The homeowner receives the alert.
- The homeowner receives the alert.
SMART DOORBELL ALERT
Someone is at your door!
Device: Smart Doorbell
Event: Button Pressed
Status: Visitor Detected
Setting Up NotificationsCheck whether your KiwisIoT plan supports the required alert or event feature.
- Check whether your KiwisIoT plan supports the required alert or event feature.
Configure a notification rule for the doorbell event.
- Configure a notification rule for the doorbell event.
Set the trigger condition to the correct pressed-event value.
- Set the trigger condition to the correct pressed-event value.
Configure the supported mobile push-notification channel or KiwisIoT mobile app.
- Configure the supported mobile push-notification channel or KiwisIoT mobile app.
Register the intended notification recipient.
- Register the intended notification recipient.
Enable notifications and test the delivery.
- Enable notifications and test the delivery.
If native push notification configuration is not available for your account, integrate an external notification service through a supported webhook or API.
Important: A dashboard status update does not automatically mean that a phone notification has been sent. The notification integration must be configured and tested separately.
10. Complete Project WorkingThe project follows an event-based operating process.
Normal Condition:
ESP32 is powered ON.
- ESP32 is powered ON.
Wi-Fi is connected.
- Wi-Fi is connected.
The doorbell button is waiting for input.
- The doorbell button is waiting for input.
The dashboard displays the device as online.
- The dashboard displays the device as online.
When a Visitor Arrives:
The visitor presses the button.
- The visitor presses the button.
ESP32 detects the button press.
- ESP32 detects the button press.
The buzzer produces a sound.
- The buzzer produces a sound.
The LED turns ON.
- The LED turns ON.
A doorbell event is transmitted to KiwisIoT.
- A doorbell event is transmitted to KiwisIoT.
The dashboard updates the doorbell status.
- The dashboard updates the doorbell status.
The configured mobile notification service sends an alert.
- The configured mobile notification service sends an alert.
After the Event:
The buzzer and LED turn OFF.
- The buzzer and LED turn OFF.
The doorbell returns to its waiting state.
- The doorbell returns to its waiting state.
The dashboard can retain the latest event or event history, depending on its configuration.
- The dashboard can retain the latest event or event history, depending on its configuration.
Remote visitor awareness.
- Remote visitor awareness.
Real-time IoT monitoring.
- Real-time IoT monitoring.
Wireless communication.
- Wireless communication.
Simple hardware implementation.
- Simple hardware implementation.
Easy-to-understand dashboard interface.
- Easy-to-understand dashboard interface.
Reduced dependency on traditional doorbell systems.
- Reduced dependency on traditional doorbell systems.
Expandable smart-home functionality.
- Expandable smart-home functionality.
Mobile notification capability.
- Mobile notification capability.
Smart homes.
- Smart homes.
Residential buildings.
- Residential buildings.
Offices.
- Offices.
Apartment entrances.
- Apartment entrances.
Small businesses.
- Small businesses.
Remote properties.
- Remote properties.
Smart security monitoring systems.
- Smart security monitoring systems.
The project can be improved with additional IoT features:
Camera Integration: Capture an image or video when the visitor presses the button.
- Camera Integration: Capture an image or video when the visitor presses the button.
Two-Way Communication: Allow the homeowner to communicate with visitors.
- Two-Way Communication: Allow the homeowner to communicate with visitors.
Visitor Detection: Add a PIR motion sensor to detect movement near the entrance.
- Visitor Detection: Add a PIR motion sensor to detect movement near the entrance.
Door Access Control: Add a secure electronic lock with appropriate safety mechanisms.
- Door Access Control: Add a secure electronic lock with appropriate safety mechanisms.
Visitor History: Maintain a record of doorbell events.
- Visitor History: Maintain a record of doorbell events.
Battery Backup: Keep the system running during power interruptions.
- Battery Backup: Keep the system running during power interruptions.
Multiple User Notifications: Notify multiple authorized family members.
- Multiple User Notifications: Notify multiple authorized family members.
The Smart Doorbell with Mobile Notification using KiwisIoT Dashboard demonstrates how IoT technology can improve everyday home convenience and visitor awareness.
By combining an ESP32 microcontroller, push button, buzzer, Wi-Fi connectivity, and the KiwisIoT cloud dashboard, this project provides a practical remote doorbell monitoring solution.
The system detects visitor activity, sends real-time events to the dashboard, and can deliver mobile push notifications through a configured notification integration.
This project is an excellent example of combining embedded systems, cloud connectivity, and smart-home automation into a single IoT application.
Build smarter. Stay connected. Monitor your home from anywhere with KiwisIoT.











Comments