I have installed WLED in the wardrobe. Currently, I am using a Zigbee door sensor to interact with WLED, but it’s unreliable. However, I want to replace the Zigbee door sensor with a reed switch. Do I need to place any resistors anywhere? Can anyone help me with adding two reed switches to a NodeMCU?
Are you trying to tie it to the same ESP device running WLED or a separate one?
In general terms, no, you don’t need a resistor. One side would be connected to ground, the other to a pin with a pull-up resistor enabled (or physically added if your board doesn’t have one). It will report high until exposed to the magnet, which will then drive it low.