TRENTON, N.J. (CBSNewYork/AP)CVS Pharmacy will pay New Jersey more than $500,000 as part of a settlement to protect consumers from buying medications and other items exposed to elevated temperatures for prolonged periods of time.

Acting state Attorney General John Hoffman announced the agreement Wednesday.

READ MORE: New York City Announces First-In-The-Nation Vaccine Mandate For Private Companies

It follows two separate 2012 incidents in which CVS pharmacies in Scotch Plains and Clark experienced air conditioning outages for multiple days. The stores kept operating after inside temperatures exceeded the maximum recommended for the storage of drugs and other items for extended periods of time.

READ MORE: Having Trouble Getting A COVID-19 Booster Appointment? CBS2 Is Here To Point You In Right Direction

Certain medications may lose effectiveness if exposed to elevated temperatures for prolonged periods. No injuries or illnesses resulting from the 2012 incidents have been reported.

Among other things, Woonsocket, Rhode Island-based CVS is converting its New Jersey stores to web-accessible or other systems to monitor and report on temperatures.

MORE NEWS: Fire Officials: Powerful Winds Blow Jersey City Building Under Construction 5-10 Feet Off Foundation

 (TM and © Copyright 2015 CBS Radio Inc. and its relevant subsidiaries. CBS RADIO and EYE Logo TM and Copyright 2014 CBS Broadcasting Inc. Used under license. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed. The Associated Press contributed to this report.)