Research Article

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

Algorithm 4

Weather announcement/alert module.
S-1: Include the software serial, SD card and audio-related libraries.
S-2: Initialize the Serial, SD card, software serial and audio communications.
S-3: Check whether data frame is available on digital pins 7 and 8.
S-4: If data frame is arriving from gateway and if frame first character is “S” then MCU receives entire string and store results in the array “C” otherwise nothing.
S-5: MCU calibrate data packet for individual sensor readings.
S-6: If sensor readings are abnormal, MCU alert the people through announcement using speakers.
S-7: If C [14] = = “L” then MCU calibrate estimated lightning strike distance and announcement module alerts and create safety awareness about lightning to rural people through speakers.
S-8: Repeat from S-4.