ESP 8266 boots in reset mode when digital in is HIGH

I have a ESP8266 Thing Dev and I am trying to actuate a servo serially through a PWM driver board PCA9685 and receive data from two limit switches using a digital high and digital low signal. By the nature of the project one switch is always actuated while the other is not. So on startup one of the digital input pins is always high and the other low. Anyways, what I have found is that if the inputs to the board are connected the unit starts in some kind of reset mode. error message on serial monitor is something like rst cs (1) boot mode (1,7) then if I disconnect the input pins and power cycle the board it starts fine and works as expected. If I boot the board with them disconnected and then connect them after sometimes it works for 24 hours and sometimes just a few seconds before going back to rst mode. I am running 5v from a wall outlet into the PCA9685 and from the v+ pin running 5v to the 8266 thing dev. I am using 5v to the limit switches and running through a logic level shifter and powering that using the 3.3v pin from the sparkfun 8266 thing dev. The limit switches use a 10k resistor and they ground the circuit, the programming logic is looking for a logic low on those pins to determine when the switch is being activated.

Any help would be appreciated, I am a mechanical engineer not an electrical engineer so excuse my ignorance if this is something trivial.

Make sure you’re not using RST or pin 16 https://learn.sparkfun.com/tutorials/es … -guide/all - also try the troubleshooting steps in that guide (nodemcu reset mode, etc) and see how that goes

Also, share a photo and diagram of the wiring and the code being used