It might be good idea to test your setup in steps. When your solenoid setup works without hiccups, go forward. Debugging the whole setup at once can be challenging...
Yeah that’s what I am planning as well. Test the solenoid, if its smooth sailing, then I’ll put on the readers after and see if there are any abnormalities.
Pick a 5V relay that has separate power for the coil and for the trigger. You recognize them from extra pins occupied usually by a jumper. Pins named H/L like in post#29 or JD-VCC.
When you find, post here before you order.
Mosfet board with optocoupler is another option.
That jumper is there so you can switch between HIGH and LOW level trigger on the IN pin. However if you put it to L (Low level) it will expose 5V to the IN pin and you do not want to connect that to the 3.3V ESP GPIO
If you connect the jumper to H you can connect the IN pin to a ESP GPIO and use HIGH to trigger the relay. However, since the modules are designed for 5V there is no gurantee that it will work with 3.3V levels on the IN pin.
Money is not really a problem to be honest. But, I’ll try with the relay first and if it doesn’t work then I’ll check this MOSFET out and try looking for more relays in Makerlabs physical store