In latter case, a conclusion can perhaps be reached that container is occupied by a life form such as an animal or human.
It may be desirable to place sensors on an item of cargo itself since damage to the cargo could occur from excessive acceleration, shock, temperature, vibration, etc.