Programmatically update a field's value
You can try this code: 

function MODULE_NAME_node_presave(Drupal\node\NodeInterface $node) {
  $node-&gt;setTitle('new Title');
  $node-&gt;set('body', 'this is body');
}