Exhibit 23 CONSENT OF INDEPENDENT REGISTERED PUBLIC ACCOUNTING FIRM -------------------------------------------------------- We hereby consent to the incorporation by reference in the Registration Statement on Form S-8 (No. 333-38891 and 333-101835) of C&D Technologies, Inc. of our report dated June 24, 2005 relating to the financial statements of C&D Technologies Savings Plan, which appears in this Form 11-K. /s/ PricewaterhouseCoopers LLP - ------------------------------ PricewaterhouseCoopers LLP Philadelphia, Pennsylvania June 27, 2005