Robert Bosch Interview Question

Can you explain how the sensor work