updated sensor model to add max_length param