Updated changes to lewihe for inductive sensor.