logging data of the sensor and then there are been plot