The present invention provides a smartphone service for crime prevention. Since home control using an IoT service has become available, a door lock and a smartphone are coupled. A network linked to all windows is constructed to provide a home security network service connecting doors. The states of all doors and windows can be checked from outside. If a window is opened when going out, a notification is provided through the smartphone. An emergency notification is provided if a door is opened by an abnormal method.