pipe trap switch