Create Sensing_function