--- title: Patch Nodes --- Patch Nodes =========== What you see on the tab in the main workspace is called a *patch*. A XOD patch corresponds to a single source file or module in other programming languages. Until now, you’ve created single-patch programs and the patch was automatically named `main`. Creating a whole project in a single patch would become messy once the number of nodes and links passed some limit. It is often a good idea to split complex patches into several simpler patches that are easier to understand and edit. Furthermore, you can reuse patches several times in your project with slightly different parameters, thus avoiding node duplication. When you use one patch as a node in other patches it is called a *patch node*. In this chapter, we’re going to build a simple watering station for two plants. The idea is to water a plant if its soil became too dry and constantly show the current soil measurements on an LCD screen. Single plant station on a single patch -------------------------------------- To start, let's build a device that will work with a single plant. We’ll use a single patch called `main`, as in previous chapters. Create a new project called `water-station` and wire up your circuit:  Now make the following patch to control the device:  Be sure to set port values properly for all hardware nodes. You may have noticed it is very similar to the previously implemented smart light project. We've only changed the sensor and the actuator. The moisture sensor replaced the light sensor, and the pump replaced the LED. Upload the program to your board and test the device. Put the sensor into a glass of water and take it out. See how the pump reacts. Observe the text shown on the LCD. Let’s improve the program a bit by adding pretty formatting to the messages so that instead of `"0.42"`, the LCD would show something like `"Cactus: 42%"`. We achieve this by adding two nodes. First, a `to-percent` node will convert a number from the sensor to a string like `"42%"`. Second, the `concat` node will concatenate the constant prefix `"Cactus: "` with the percent string: 
Hint
You can click the help button
in Inspector or Project Browser next to a node name to open node’s reference
and learn what the node does.
XOD T0D0 Currently there is no cut/copy/paste in XOD. Yes, that’s a pain. We’ll implement it in future versions. If you would like to give the feature more priority, we welcome you to share your opinion on our forum.