# Using Serial, transfering string or int to Arduino

**URL:** <https://discourse.nodered.org/t/using-serial-transfering-string-or-int-to-arduino/5838>\
**Category:** General\
**Created:** [15 December 2018 21:27 UTC](https://discourse.nodered.org/t/using-serial-transfering-string-or-int-to-arduino/5838 "2018-12-15T21:27:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Christian](https://avatars.discourse-cdn.com/v4/letter/c/b2d939/32.png) [@Christian](https://discourse.nodered.org/u/Christian)\
**Post date:** [15 December 2018 21:27 UTC](https://discourse.nodered.org/t/using-serial-transfering-string-or-int-to-arduino/5838/1 "2018-12-15T21:27:33Z")

</div>

Hello everyone!

Boy, I learned from my stupidity. I'm still having trouble though, and it's baffling me to some degree.  
Trying to send a simple "15:47" over a serial node to my Arduino. It says connected and everything, as the picture will show:

 ![The-setup](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/1/1fdad4ae5e0861275f6b0d0a2ab5d3c28b80d234.png)

On the recieving end I have the following code:  
#define LIGHT 2  
void setup() {  
// put your setup code here, to run once:  
Serial.begin(11520);  
String Sundown;  
}

void loop() {  
// put your main code here, to run repeatedly:

String Sundown = Serial.readString()

digitalWrite (LIGHT, LOW);  
if (Sundown = "15:47");  
digitalWrite (LIGHT, HIGH);

Any ideas, ladies and gentlemen? I know this is only partly Node-Red, but I happen to know we have some brilliant Arduino people out there! Am I using the wrong Serial (the rate is 11520 for both Serial and Arduino)

Flow info attatched in file. ;[The Flow.txt](https://discourse.nodered.org/uploads/short-url/wCC6mVfetaVY2i2g5ojPoF3xzyL.txt) (3.2 KB)
