Smelling and hearing added

A function for checking if the pet hears or smells an object has been
added.