How to use Voltage Supervisor and MOSFET to switch off ESP32 supply?
You should carefully calculate the value of resistor R2 and the capacitor C1 value. I would like you to follow my below-attached reference schematic for the TC54 with IRLZ44N.
https://www.flux.ai/ramprakashvishnoi8/tc54-voltage-supervisor-with-irlz44n-rectifier
Let me hear any questions from your side.