Looking for metal sensor

Commercial inductive sensors are expensive. What is your definition of compact?