Security is of paramount importance in homes, schools, offices and industries. Traditional mechanisms such as locks and keys, door chains etc. have all shown their limitations. These limitations include: the key can break in the lock; the lock can be defective; the key can be stolen or fraudulently duplicated resulting in unauthorized access to a building. This article describes the development of a system to secure access to a building. In this system, users who are authorized to access the building are identified by their radio frequency identification (RFID) card and authenticated by a password. This system provides an effective means of controlling the entry and exit of authorized persons, as well as preventing the entry of unauthorized users and reporting intrusion attempts. To set up this project, we need to acquire a radio frequency identification (RFID) reader, an RFID module, an LCD screen, an ESP8266 MCU node, a database manager and a website.