Please wait

Exhibit 23.1
CONSENT OF INDEPENDENT REGISTERED PUBLIC ACCOUNTING FIRM
We consent to the incorporation by reference in Registration Statement Nos. 333-261651, 333-263980, 333-270719, 333-278237, and 333-286097 on Form S-8 of our reports dated March 16, 2026, relating to the financial statements of Samsara Inc. and the effectiveness of Samsara Inc.’s internal control over financial reporting appearing in this Annual Report on Form 10-K for the year ended January 31, 2026.
/s/ Deloitte & Touche LLP
San Francisco, California
March 16, 2026