Exhibit 23.1
Consent of Independent Registered Public Accounting Firm
We hereby consent to the incorporation by reference in the Registration Statements on Form S-1 (Nos. 333-290480 and 333-289944) and Form S-3 (No. 333-275608) and Form S-8 (Nos. 333-279963, POS-333-275073, and 333-271332) of bioAffinity Technologies, Inc. of our report dated March 13, 2026, which includes an explanatory paragraph regarding the substantial doubt about the Company’s ability to continue as a going concern, relating to the consolidated financial statements of bioAffinity Technologies, Inc. as of and for the years ended December 31, 2025 and 2024, which appear in this Form 10-K.
| /s/ WithumSmith+Brown, PC | |
| New York, New York | |
| March 13, 2026 |