top of page

Gmail Alert using IOT - Esp8266

Writer's picture: Ankita SharmaAnkita Sharma

Updated: Sep 26, 2024

The Internet of Things ( IoT) aims towards making life simpler by automating every small task around us. Alerts play an important role in IoT developments to notify the user about something important. It can be either in the form of Gmail notifications, LED indication / SMS alerts, or any other form.


In this article, we will learn How to get Gmail notifications using NodeMCU Esp8266. The simplest method to send and receive Gmail alerts from an ESP8266 WiFi module is by using the Blynk app.

Hardware Components :


1. Breadboard


breadboard
Breadboard

They are basically a construction base used for prototyping electronic circuits. Breadboards allow us to make quick connections between hardware components, without soldering.


Buy Breadboard from here.





2. Esp8266 NodeMCU


NodeMCU
Esp8266 NodeMCU

It is an open-source development board specially targeted for IoT developments. It is having integrated support for WiFi connection. Also, it is very cost-efficient as well as consumes less power. It allows us to use it as a micro-controller and manipulate input and output.


Buy Esp8266 from here.


3. Ultrasonic Sensor HC-SR04


Ultrasonic Sensor
HC-SR 04 Ultrasonic Sensor

The sensor contains an eye-like structure that acts as a transmitter (T) and receiver (R). The Ultrasonic transmitter transmits an ultrasonic wave that travels in the air and gets reflected towards the Ultrasonic receiver module.


It works with the basic formula for calculating distance in terms of speed and time i.e. ( Distance = Speed × Time ). Here, the time of flight includes the distance traveled back and forth, so we need to divide the time of flight by 2 while calculating the distance. Thus, D = S x T/2 where T is the time taken for the waves to hit the object and reflect. It consists of 4 pins: Vcc ( Power supply ), Trigger ( input pin ), Echo( output pin ), GND (ground).


Buy HC-SR04 Sensor from here.





4. Jumper Wires