let $name = new LinearAccelerationSensor({frequency: 60});

$name.addEventListener('reading', e => {
  console.log("Linear acceleration along the X-axis " + $name.x);
  console.log("Linear acceleration along the Y-axis " + $name.y);
  console.log("Linear acceleration along the Z-axis " + $name.z);
});

$name.start();