You can test your proximity sensor by getting on a call. While on a call, make sure that you are in handheld mode, then cover the top part of the device. If the screen turns off, then your Android proximity sensor is working.