Research Article

Smart Garage Utilizing Internet of Things (IoT)

Algorithm 2

Departure algorithm.
1. While (departure RFID=value)
2. Open the departure gate and turn RGB led to green.
3. If (entrance gate sensor D > threshold 4cm)
4.  Close the departure gate and turn RGB led to red
5.  Start scanning the slots
6.  Increment number of empty slots at Lcd
7.  Send the empty slots to application via Node MCU
8. End if
9. End while