The proximity sensor notices the presence of body parts (ear or hand) near the screen. It helps achieve two things:

  1. Start recording when phone is raised to the ear.

  2. Avoid the ear from accidentally pressing the send button (and stop the recording).