Research Article

Experimental Evaluation of Lightning and Weather Alert Methods in Rural India using LoRa and IoT Technology with Nanosensors

Algorithm 3

Gateway system to alert rural people through various methods.
S-1: Include the LoRa, SPI, ThingSpeak, WiFi, and HTTP client libraries.
S-2: Initialization.
S-3: Connect gateway module to known network using network SSID and password.
S-4: Check for LoRa packet is arriving from weather station or not. If packet is available, then gateway receives the entire packet and stores in the array “C.”
S-5: Gateway processes the array “C” for individual sensor readings.
S-6: If sensor readings are abnormal• It communicates with cloud platforms (ThingSpeak, IFTTT, and Text me BoT) to send alert message through mobile app, email,VoIP, Whats App, etc.• It communicates with announcement module to alert rural people through announcement.
S-7: Repeat from S-4.