10-04-2025, 04:45 AM
A safer approach is to use a P-channel MOSFET or an N-MOSFET low-side switch to control the sensor’s VCC, or even a small transistor. This way, your GPIO just controls the gate/base and the sensor gets proper power for resets.

