Get enitity ID after programatically creating one I have a the following code:

// Create an Entity with wrapper
  $node = entity_create('node', array('type' =&gt; 'person'));
  $entity = entity_metadata_wrapper('node',  $node);

  // Add a node title
  $entity-&gt;title = $person['name'];

  // Add the address information
  $entity-&gt;field_person_address-&gt;thoroughfare = $person['address'];
  $entity-&gt;field_person_address-&gt;locality = $person['city'];
  $entity-&gt;field_person_address-&gt;administrative_area = $person['state'];
  $entity-&gt;field_person_address-&gt;postal_code = $person['postalcode'];
  $entity-&gt;field_person_address-&gt;country = $person['country'];

  // Save the entity
  $entity-&gt;save();


The data is saved in the DB perfeclty, but I need to get the entity ID of the new save node. 

How do I do that?
You can use getIdentifier() method of the wrapper.

$node = entity_create('node', array('type' =&gt; 'person'));
$entity = entity_metadata_wrapper('node',  $node);
$entity-&gt;save();
$entity-&gt;getIdentifier();