Initially I tried with an ESP-01 but the problem I had was that I needed 2 GPIO lines, one input, one output. The input was fine but the output was a problem as I needed to drive a transistor and the output was being dragged low causing the ESP to hang during reset.