Bernstein Proximity Sensor