Skip to content

Arduino and simple serial devices

Simple serial devices just read the given serial port and wait for a "number" (+CRLF) line to be read, and generate a trigger event when the value is over a threshold.

... reading com port
0
0
0
1  => Triggers event  
1
1
1
0

By default, a value of 1 will do.

Adjust the baudrate=9600 for the COM port and the threshold=1 in the sensor.ini to use other values than the default.

[sensor:0]
name=Simple Serial Sensor
backend=serial
port=COM1:
baudrate=9600
threshold=1