The NodeMCU doesn’t really have enough useable pins for this, read this…
You should probably use an ESP32, but this board is also an option…
Pete.