Please wait

Exhibit 23.1

CONSENT OF INDEPENDENT REGISTERED PUBLIC ACCOUNTING FIRM

We consent to the incorporation by reference in this Registration Statement on Form S-8 of our report dated June 21, 2021, relating to the financial statements of Samsara Inc. appearing in the Registration Statement No. 333-261204 on Form S-1, as amended. We also consent to the reference to us under the heading “Experts” in such Registration Statement.

/s/ DELOITTE & TOUCHE LLP

San Francisco, California

December 14, 2021