Research Article

Enhancing Healthcare through Detection and Prevention of COVID-19 Using Internet of Things and Mobile Application

Algorithm 3

Work of an ultrasonic sensor.
Step 1: start.
Step 2: [check NodeMCU connection].
If(connected) {
Calculate the distance.
} else {
NodeMCU connection failed.
}
Step 3: [calculating distance].
Get data from ultrasonic sensor.
Step 4: check the data with applied conditions.
Step 5: if (distance > normal) {
Buzzer = ON.
Red LED = ON.
Notify the user and admin.
} else {
Green LED = ON.
}
Step 6: repeat steps 3 to 7.
Step 7: end.