Data doesn't post on sitemap - Serial

I’m very new to openhab and home automation in general.

I am trying to sent data from an Arduino to openhab through serial USB.

minicom shows that it is able to read the data sent to the serial usb port.

i have added:
to both and

some lines of instructions that i put in the items and sitemap file are below:
Number Arduino “Arduino [%s]” (arduino) {serial="/dev/ttyUSB0"}
Text item=Arduino label=“Weight”

Is there anything I did wrong?
events.log also didn’t update, hence my problem

Sorry, if I missed a simple fix.

Thank you


The item that is storing your serial data should be a ‘String’ and not a ‘Number’.

String Arduino “Arduino [%s]” (arduino) {serial="/dev/ttyUSB0"}

What if I want to use the same bit of data and use it in a graph, do I need to create another item or will the variable type String would still work?

Serial communication is always text/string. You would have to have a rule that converts the serial item to a number item.

I think something along this line for items

String Arduino “Arduino [%s]” (arduino) {serial="/dev/ttyUSB0"}
Number Weigth “Weigth [%s]” (arduino)

and as rule

rule "Arduino sends to Openhab"
Item Arduino received update
var Integer Weight = new Integer(Arduino)
end rule

Thank you very much, I will read up a little bit more on the wiki, hopefully I learn more.