martinayotte wrote:1- If GPIO2 is used as input, you need to consider that the sensors provide HIGH level on idle, otherwise the ESP won't boot.
2- I means : in your current schematic, the switch is badly located, it is really shorting power, not shorting the GPIO0, it needs to be moved the other side of the PullUP.
3- It is up to you ! MOSFET such 2N7000 or AO3402 are cheap as well.
4- no problem.
5- No ! you absolutely need GND and GND2 to be connect together, otherwise your MOSFET will be in some kind of "floating mode". If you wish to have them separated, you will need some opto-coupler circuits.
thanks a lot to take such time to have a look and help people like me here
2-i understand now , i will move the button the other side to be directly connected to the GPIO0 Pin.
3- i will check for that.
5- i think as the GND is coming from 5V power supply and GND2 is from the external 12V power supply should be seprated.
what is the effect on other parts of schematic ?
once i update your suggestions i will post it for last review.