some bugs in buffer writing.
Open and close serial port in run sensors.
Init circular buffer.