The present invention provides a network camera having a plurality of digital output terminals for outputting an alarm, and a method of controlling the network camera. That is, the present invention includes a plurality of digital output terminals for transmitting image information obtained through a wireless communication network to a server and transmitting information about sensing a person and information about a problematic situation, respectively, using a 4-wire cable, so it is possible to check whether it is a normally-closed state or a normally-open state through the plurality of digital output terminals that are individually managed, respectively, and accordingly, it is possible to improve convenience in use.