A nebulizer for delivering an aerosol form of medication to a patient is provided. The nebulizer includes a control unit, a pressure sensor, and, a communication unit. The control unit that controls a nebulization process includes a memory, and, a counter unit. The memory stores a preset timer value and a preset count value of the aerosol delivery of medication. The counter unit calculates one or more counts corresponding to the aerosol delivery of medication given to the patient. A pressure sensor detects a pressure level of a compressor during the aerosol delivery of medication. The communication unit transmits an alert message to a paramedic or a guardian when a detected pressure level of the compressor is not equal to a threshold pressure level. The communication unit further transmits an alert message to the paramedic or the guardian when a calculated count value exceeds a preset count value.