Create wall_sensor_function