1.add an easy-to-use function for class yl_sensor.
2.update example with new function.