Techniques are disclosed for providing a drug-dispensing device that tracks temperatures to which a drug stored therein is exposed, further providing means for indicating to a user that the drug has been exposed to temperatures outside a suitable temperature range and/or preventing the drug from being dispensed in such cases. According to some embodiments, an electrochromic element may be used to indicate the drug has been exposed to temperatures outside the suitable temperature range.