added function to orient the table towards the sensor