To use the SmartPi's measured values or the expansion modules in Node-RED, you must install the node-red-smartpi plugin.
The easiest way to do this is via the Manage palette menu item in the Node-RED interface.
To install it, go to the Install tab and search for node-red-smartpi.

You may see a message at the top of the screen saying that Node-RED needs to be restarted. In this case, the easiest option is to restart the SmartPi.
After installation, you will find the plugin under Installed nodes.
Here you can also remove, disable or update the plugin.

In the Node-RED interface, you will find the SmartPi nodes in the node palette on the left-hand side.
For help on using them, see the application examples for the expansion modules, among other places.