Robert Bosch interview question

Can you explain how the sensor work