Creating buffer class for sensors