Adding save function for sensor metadata controller.