Plenty Farms interview question

When would you use inductive sensor?