Error: Arduino Serial port closed when connecting to arduino Uno

Which node-red are you using to send the true to the arduino ?
Please export your flow and attach it to a reply

In order to make code readable and usable it is necessary to surround your code with three backticks (also known as a left quote or backquote ```)

``` 
   code goes here 
```

You can edit and correct your post by clicking the pencil :pencil2: icon.

See this post for more details - How to share code or flow json