EX-23.1 5 dex231.htm INDEPENDENT AUDITORS' CONSENT Independent Auditors' Consent

EXHIBIT 23.1

CONSENT OF INDEPENDENT REGISTERED PUBLIC ACCOUNTING FIRM

The Board of Directors and Stockholders

The Hershey Company:

We consent to the incorporation by reference in the registration statements (File No. 333-159246, File No. 333-72100, File No. 333-25853, File No. 333-72112, File No. 33-45431, File No. 33-45556, File No. 333-52509 and File No. 333-107706) on Forms S-8 and S-3 of The Hershey Company of our reports dated February 19, 2010, with respect to the consolidated balance sheets of The Hershey Company and subsidiaries as of December 31, 2009 and 2008, the related consolidated statements of income, cash flows and stockholders’ equity for each of the years in the three-year period ended December 31, 2009, and the related financial statement schedule, and the effectiveness of internal control over financial reporting as of December 31, 2009, which reports appear in the December 31, 2009 Annual Report on Form 10-K of The Hershey Company.

/s/ KPMG LLP

New York, New York

February 19, 2010