The number received is compared to the predefined numbers in the flash ROM and then the microcontroller sends signal high to the WiFi module1 if the number is valid. This high value is transmitted to WiFi module 2 and the relay is tripped and the door is opened.