I am trying to figure out the supply voltage for an 12V induction probe. The probe requires 12v and the supply could either be 12 or 24v. Currently, I have a SPDT switch to manually choose the supply voltage. When the switch is set to 24v the output goes through a 12v voltage regulator and when the switch is set to 12v it just passes through. I was thinking a buck-boost convertor would work, but space is limited. I am looking at using a low-side transistor switch as a possible solution, but I am not sure.
Probe LJ18A3-8-Z/BX http://www.zyltech.com/18mm-proximity-sensor-lj18a3-8-z-bx/
The probe's description says it supports DC 6-36V, but I have found that I get the most consistent measurements at 12v.