An electronic cigarette (e-Cig) or personal vaporizer device generates a vapor that is inhaled by a user. Liquid in a cartridge is vaporized or atomized by a heating element that heats the liquid. When the e-Cig is activated, and the user provides suction, the liquid to be vaporized is drawn out of the cartridge, through a wick, and is atomized by the wick into a cavity containing the heating element. The heating element may be directly written onto substrate. Various sensors may be employed to optimize the liquid usage.