About connecting nodeMCU with arduino uno

You can use virtual pins.

Read this

and this