A motor controller controls a motor operated by an AC line voltage. Individual memory cells of the array include a capacitor having first and second electrodes, a dielectric layer disposed between the first and second electrodes. The hazardous substance is, for example, a volatile organic compound such as aldehydes or a malodorous substance such as a sulfur compound.