Use a protocol to let the view controller to handle the sensor data change.