support proximity switch

support proximity switch