Mailbox Notification Using Blynk App


I always forget to check my mailbox?. Each time I checked, there was no new letter for me?. But when I didn’t check the mailbox, there was an important letter for me?. To prevent this from happening again?, I decided to make this mailbox notification??.

You can also do this for “Assignment Box?”, especially for lecturers. This can help to notify you when students submit their assignments.

?Watch this video for more info on how to make a mailbox with notification using Maker UNO and Blynk App.


This tutorial use :

Sample Code

This is the sample code used for this tutorial. Try it!

#include <ESP8266_Lib.h>
#include <BlynkSimpleShieldEsp8266.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "YourAuthToken";
// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "YourNetworkName";
char pass[] = "YourPassword";
// Hardware Serial on Mega, Leonardo, Micro…
//#define EspSerial Serial1
// or Software Serial on Uno, Nano…
#include <SoftwareSerial.h>
SoftwareSerial EspSerial(2, 3); // RX, TX
// Your ESP8266 baud rate:
#define ESP8266_BAUD 9600
ESP8266 wifi(&EspSerial);
int sensorPin = 7; // Input pin for the IR sensor
int count = 0; // Mail counter
String stringOne = "You got ";
String stringTwo;
String stringThree = " new mail.";
String message;
boolean prevState = false;
void setup()
// Debug console
// Set ESP8266 baud rate
Blynk.begin(auth, wifi, ssid, pass);
void loop()
int state = digitalRead(sensorPin);
if ( state == LOW && prevState == true) {
stringTwo = count;
message = stringOne + stringTwo + stringThree;
prevState = state;
count = 0;


  1. Blynk – Notification

Thank you

Thank you for reading this tutorial and we hope it helps your project development. If you have any technical inquiry, please post at Cytron Technical Forum.

2 thoughts on “Mailbox Notification Using Blynk App”

Leave a Comment

Your email address will not be published.

Share this Tutorial

Share on facebook
Share on whatsapp
Share on email
Share on print
Share on twitter
Share on pinterest
Share on facebook
Share on whatsapp
Share on email
Share on print
Share on twitter
Share on pinterest

Latest Tutorial

Ultrasonic HC-SR04P Using Raspberry Pi Pico
Object Sense With Servo Using Maker Pi RP2040
Build Otto DIY Robot Using Maker Pi RP2040
Raspberry Pi RP2040 vs STM32F1 vs SAMD21G18 vs ESP32-S2
The Easiest Way to Print Temperature Tower Using Cura 4.9.1 Plugins
Tutorials of Cytron Technologies Scroll to Top