Some smells that may deter cats from pooping are citrus, ammonia, and lavender. Cats have these sensitive noses that can detect the smell from far. Having citrus fruit peels or sprinkling lavender essential oil in your garden can actually prevent cats from pooping in your garden