NodeMCU read status Gpio

I have NodeMCU with tasmota and a want install a device to read status of a sensor open/close in Gpio 12.
What is the best plugin and how can i configure?
Thanks